Change Rate-Us URL remotely without updating the app Android - json

I want to use a Json file, when i click on a button to rate the app, the URL will be in a Json file Online, so i can any time change it without updating the app from the market.
Is there any example for that ?

You may want to check/use the Firebase Remote Config to define parameters in your app and update their values in the cloud, allowing you to modify the appearance and behavior of your app without distributing an app update.
Here's a Sample App Walkthrough from them on how to use the Firebase Remote Config.

Related

Ionic 5: How to write to local JSON files?

I'm developing an Ionic-Angular mobile application that involves tracking user progress. While I'm familiar with how to read from locally defined JSON files (and render that data), I've been unable to find any solutions online to write/append to local JSON files.
Until I'm able to utilize something like Google Firebase, I'd like to be able to just store this data by writing to local JSON.
Is there any way I can do this or is a database the only solution?
I'm assuming this is a web application. There is no way you can access the file system of the user to persist the data.
Other options
Index DB (save the information locally to the user at the browser level). User can go to the mobile device settings and clear it if required.
Use a mock api if this is only during the local development purpose (Use json-server and watch the database json file. You can update the database json file and it will reflect)
If you are building a hybrid application using ionic, then use one of the cordova plugins available here.
Use an actual backend service which persists it in the database.

How to create an cordova application that refers a external file for URL?

I need to create an application that should refer an external file for url.
The external file should be manually edited by the user in case of change in URL.
The application should deployed for both ios and android application.
please suggest any other method like create preferences variables that can edited by user
You can create page with a from (with your preferences) and save the date from the form in your localStorage. The localStorage has no expiration date but will be lost when the user removes the app from his device.
The localStorage is a part of Web Storage API which is supported by all modern/major browsers (proof). Since cordova actually serves your app as a web page you can use the Web Storage API as well (cordova documentation)
Documentation info about localStorage can be found here

Is it programmatically possible to update a windows store apps from within the app?

Is there an API that allows to me to programmatically pull the latest update from the store and refresh the current version that the user is using? If not, is it possible for the current app to programmatically know that there is a new version available?
Any samples/examples would be highly appreciated.
You can't programmatically install any Store software. But you can programmatically open the Store to let it do the user manually.
That said, there's no official Store API which you could ask about app versions (you might be able to parse the Store's HTML pages, but I recommend against this approach).
What you can do: Put a small XML file on your website which contains the latest app version number. Your app then can read this file and compare this desired version against the running app's version. If the app is outdated, the app can show a message box to the user.
I ended up using WNS and Azure Notification Hub to send a push notification to the app when it is launched. The notification is in the form of a toast message that essentially states that a new release is available. But if you updated/downloaded the app after xx/xx/xxxx, no updates are necessary.
I know it is a little cludgy but at least the users now know that the version of the app that they are using may be dated. I control the notification through Azure Mobile Service (which is free for up to 10 apps) and can fully modify the actual script.

Submit an app with In App modules

I am a newbie in Windows Store Apps development. I have created an app which has some In-App purchase modules. I am testing this with locally created WindowsStoreProxy.xml file, However to test in app purchases, I updated this xml manually and added these modules in ListingInformation and LicenseInformation tags. If I don't do this my app throws KeyNotFoundException which is usual. Now my issue is, after submitting the app to the app store how will testers test these in-app purchases? Its very serious, because It may cause to App Rejection. Please suggest.
On the Store dashboard, you'll fill out the in-app purchase details before you submit. All that info will then be in the Store database when the testers get your app.
To be specific, when uploading your app you'll take whatever information you've been using from WindowsStoreProxy.xml and paste it into the app description page. If you want to see what this looks like, go ahead and create an app package now, and then upload to the dashboard. This will then allow you do go to the description page where you can see what will be required. Just make sure to upload a new package before you complete the submission.
Also be sure to change CurrentAppSimulator to CurrentApp (you'll fail cert quickly if you forget).

unable to persist indexedDB after reinstallation

I am unable to persist indexedDB when I re-install the chrome app which is using it. While I'm able to persist data using the sync file system across re-installations.
Should I use the storage API to push the indexedDB data in an array and store it in a file?
Is there a "C language" like way in JS(while making chrome app) to save data using structs and file access? Something like data structures using JS.
Am I going all wrong? And the solution to this problem is rather simple and obvious.
All what you get for app is the app sandbox and resources also using in the app sandbox. Chrome delete the sandbox and it resources after app was removed. And it's true behavior then you create a sandbox.
You need any back-end/server-side storage to store use data and sync it then user reinstall the app.