How to push update to a flutter app which is not uploaded on play store - flutter

I have a scenario where in i am building an flutter app which i don't want to upload to google play store. I will provide the .apk to download via website .
Now i have a new version of the app which i replaced the old .apk file with in the website.
Now how to push the notification to the user and ask them to update the latest version of the app.
Should i have to maintain some github repository where i maintain the releases ?
Any suggestion to this complete scenario would be greatly helpful.

1- create an api that return latest app version
2- always make a request to this API when ever the user open the app check the API latest version and user app version (I recommend using package_info_plus)
3- inform user with the new app if app version != latest version(API)

You can user firebase or any notification service to send notification from server to the users you can schedule notification that trigger when update is added in the server
you can create the dialog that check the version of your apk and check through the server api where latest version in updated in api and you can show the dialog every time

Related

how to change firebase account in a flutter project?

I created a flutter project with my personal firebase, but now the client has already created his firebase, how do I change the account in a project, I've searched the documentation but without success?
Unfortunately there is no easy way to switch.
The information you configured when you first created flutter project on firebase, it has be configured again with clients Firebase.
For example -> replace old GoogleService-info.plist, android package name and iOS bundleID with the new one.

Installed PWA is not updating

I have developed a PWA using Quasar framework. I didn't change anything in service-worker or manifest file, just going with defaults.
I have hosted the build on AWS S3 facing a cloud-front distribution.
When I push the updated build on S3 and invalidate the cloud-front distribution cache. The user who opens the website via browser gets an updated version. but users with installed PWA never get the updates unless they open the website again in the browser.
I have planned to update changes every other day. what is the best way that whenever I push change installed PWA gets updated instantly?

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.

prevent auto-update of Chrome App

One of the information at https://developer.chrome.com/webstore/get_started_simple states that “5. After you publish your app, whenever you want to change your app's listing or .crx file, use the dashboard to update them. To push an updated .crx file for your app, just increment the version number in the manifest, upload a new ZIP file to the dashboard, and publish the change. People who have already installed your app will automatically get the update.”
As per that, whenever, for a given app, an updated CRX file (i.e., new version of app) is uploaded in the webstore, the client devices where the older version of app was previously installed would get updated (with the new version of app) automatically.
However, I’ve requirement, where the new version of the app shouldn’t get updated automatically - even if the new version of the app is uploaded in the 'webstore'.
Is there a way to accomplish that?

Add iOS push notifications to Visual Studio Cordova Project

Hi I'm following this tutorial https://github.com/ggailey777/mobile-services-samples/tree/master/CordovaNotificationsArticle
to add iOS push notification to my Cordova project but couldn't get it to work. The APNS certificate is configured and I've uploaded the p12 file to azure mobile notification.
When I run the app it shows "Registered with Azure!" and in azure notification hub I can see the registration.
However when I send test push notification using visual studio, the message result is empty.
If I use azure portal, it shows "The test notification was sent"
And my iphone never got any notifications either when it's open or closed.
Am I missing something? Any help is much appreciated.
Thanks!
You are mixing and matching technologies. You cannot use iOS Native code in an Apache Cordova app. Based on your comments, use the cordova-push-notifications plugin. The README.md in the project describes how to add it for iOS. It's relatively simple.
You will still have to deal with how to get your device registered with Notification Hubs and getting a notification sent to your device. That is covered in detail in the Azure Notification Hubs documentation.