Android app on Chrome using ARC, back button at the top enabled

developer.chrome.com/apps/getstarted_arc#bestpractices

ARC allows you to run native Android apps through the Chrome browser, wrapping a chrome app around it (as far as I can tell)

I rephrase the Android app to work well in Chrome. The first thing I need to do is make the back arrow on in the upper left corner, as shown below. enter image description here

This is a program that allows open-end applications to work through chrome. I think the answer to my question lies somewhere in the "Additional metadata" or in the source code?

enter image description here

+7
android google-chrome google-chrome-arc
source share
2 answers

Add {"disableAutoBackButton": "true"} to the metadata. This will enable the back button within the action. I found that with my application, which has several actions, however, it does not work to return to my main activity from my activity setting. Maybe I'm doing something wrong with the way I do business, I think, but it works on all physical devices.

+7
source share
{"sleepOnBlur":false,"disableAutoBackButton":true} 

please supply the above metadata before downloading the zip or launch application from an arc welder

the first parameter prevents excessive pause / resume, and it is also supposed to fix the short flash of the black screen, which sometimes occurs in some applications.

the second parameter adds a return button to the upper left side, which helps to avoid the need to use an additional code due to the lack of a return button on some screens (mainly on the first screen).

+3
source share

All Articles