chrome.identity in development - google-chrome-app

I'm confused by how I can develop a Chrome App with chrome.identity.
The instructions say that I need to add the key to my manifest.json, and that I need to put the extension id in the Google API Console.
I have a published version of the app, and I am currently developing a local copy, so I am loading it unpacked from my local file system.
Can I put the key from the published app in the dev manifest.json?
Does the extension id in the Google API Console need to be of the published app, or my local one?

Yes you should do that to debug chrome.identity without pain.
If you place public key of your published app inside manifest.json, your app will have the same ID as the app in Chrome Web Store.

Related

Is it proper to publish a mobile app using test database and api in internal testing?

I have built a flutter app and i want that our testers will test the app through internal testing in google play using the test database and test api url.
This is doable but it has a drawback. In google play, you can actually use the same build that was published in internal testing to be published as a release version. Since I am using a test database and api on the build, i have to change the settings to use live version and build the apk and upload it again to google play to do so. So whenever i want to have a new release, i need to submit atleast 2 builds.
Do you think this process is proper? If not, do you have any recommendation on how i can share the app to my testers that uses test environment. I have done things like sharing apk manually on microsoft teams but it doesn't feel like the right thing to do according to me.
Well, the best approach would be to create a new flavor for your dev environment instead of just building with differentet variables. Then you can create a new app at appstore named "yourapp dev" with different bundle id, e.g com.yourapp.app.dev and upload your dev builds to internal track of the new dev app. If you don't want to create a new dev app to playstore for distributing, you can also use firebase distribution to share your apk/ipa.

I want to update the existing logo for my PWA app

When I am updating the logo of the PWA app the icon is not getting updated for the previously installed applications. However for newly installed apps I am getting the correct logo.
Did you try updating the new image icon in manifest.json & then showing a prompt to users to refresh the PWA?
You can try to have a look at the documentation for Android APK (from the question is not clear your target device: web or mobile).
Chrome will periodically compare the locally installed manifest against a copy of the manifest fetched from the network. If any of the properties in the manifest required to add the PWA to the home screen have changed in the network copy, Chrome will request an updated WebAPK, reflecting those new values.
This feature is not yet available for desktop, but planned in a future release.
Do you use any framework (Angular, React) to build your PWA? If you want to read more details about how to install an app on the homescreen or the web manifest properties, you can have a look here.

Do I need to make draft in google play console before I use Fastlane

Can you upload app in Fastlane command with android and Fastlane app in the google play console or I need to make draft in console before I do?
Fastlane unfortunately can not create an Android app from scratch, as it can with create_app_online (formerly known as produce) for iOS. Google just doesn't offer any API for that.
So yes, you have to at least create the app on the Google Play Console which usually includes uploading a first APK (so the Play Console knows about the package name [com.example.app] or your app) to one of the available lanes (which doesn't have to get published though).

How to publish a self-hosted app on Google Play?

Where to upload the definition file for a self hosted (managed) app in the Google Play console on a Google developer account?
I'm developing an app for a customer that uses an EMM (XenMobile) for managing their Android devices.
We are using Android Enterprise (former Android for Work) to create a device owner managed profile on the devices and publish apps using the managed Play store together with XenMobile.
The customer wants to keep the APK within their own premises (and on their own COSU devices) and not host apps at Google. According to Google, this is possible - Google calls it Self hosted private apps and also has articles describing everything but the actual publishing process (https://support.google.com/googleplay/work/answer/6145182?hl=en&ref_topic=6145152).
I have the developer account and the json definition file created from the EMM, but when I try to upload the json instead of the apk file to publish the app, I'm prompted to upload the apk file instead.
My question therefore is - Where am I supposed to upload the definition file?
BR Thomas
The owner of the developer account needs to be an admin of the enterprise in order to be able to publish a self-hosted app on Google Play. Therefore you will need to ask your customer to create a developer account using their admin account and upload the self-hosted app with this account.
Then here are the steps in the Google Play Console:
create a new app,
in "Pricing & distribution > Managed Google Play" select "Turn on advanced managed Google Play features",
and then select "Privately target this app to a list of organizations"
The app should now be targeted to one organization:
After that:
go to "App releases > Production track > Manage" and create a new release,
select "I am uploading a configuration for an APK hosted outside of Google Play",
upload your JSON file.
The interface should look like this:
Testing
If you want to test the app before sending it to your customer you can create a test organization using the Android Management Experience. Just make sure to use a different package name for the app since package names must be unique in Play.

Call phonegap plugin function within web app

i am building my first phonegap app and when i open the app i instantly redirecting (window.location) the user to my server where my web app is hosted. Is it possible to load the phonegap plugins from there? Because the "deviceready" event is not firing and i cannot call any plugin functions.
I can confirm that loading remotely does appear to allow access to native components (when scripts are properly loaded) and that cordova.jsdoes not appear to need to be loaded by the local index.html bootstrap.
Short answer: Yes
Some 'gotcha's'
You will have to supply correct cordova.js version for the platform browsing to your site.
you can look here for more info https://github.com/apache/cordova-js. This project hosts the core js elements, and builds the platform specific cordova.js lib
Any plugin api's your app wants to interact with must be pre-installed into the Native App
any plugin with native code will have to be added to the project and deployed to device bundled inside the app. There is no way to lazyload native code. The js portions of the plugin could be hosted on your server, however.
More information, some apps that do this
The PhoneGap Developer App uses a similar technique to what is describe above and what you want. The only difference is that it is meant as a dev tool, and the server is a local dev machine.
The Cordova App Harness also uses this technique of pre-bundling an app package with plugins, to be consumed by remotely hosted resources
You cannot, deviceready only functioning if the app run on mobile phone environment only. If web based or dekstop application, it won't trigger.
No , dont do that . loading remote website will not able to intract with your plugins . and the app will get rejected on istore too