In current application, locally checking whether application has new messages or not. If application is in background and there are 5 messsages arrived I need to display badge count on application icon as 5 only and still application should be there in background.
How can I achieve this using ionic?
It's long to implement and I don't know where you are stuck, but, in short, you have to consider three aspects :
Configure the server to push the notifications (with a messaging solution such as Firebase Cloud Messaging)
Receive the push notifications in the app (with an Ionic or Cordova plugin)
Instead of displaying a notification, change the badge on the app icon (with an Ionic or Cordova plugin)
Related
in my application I need to send a request to the database 2 times a day and issue a notification on the response.
The problem is that the Dart codes I wrote should work even when the app is closed. I used workmanager background service and flutter_local_notifications. On the Android system, it works without problems, but on the IOS system, it constantly causes problems. How can I make things work the way I want for both Android and iOS?
Im already using the awesome_notifications package to create custom notifications in my Flutter app but it doesn’t seem to support communication notifications for iOS (notifications with a profile picture instead of the app icon). I don’t know if there’s a plan to add this in the future and it’s been a year since these notifications were released with iOS 15 so I’m looking for other solutions. Are there any example Flutter apps with a platform channel or something like that to create communication notifications?
First of all I am completely a beginner in android native code, I started with flutter app development. My problem is with the implementation of push notification. I want to Fetch data from the socket API continuously in the background and use the data to show as push notification when my FLUTTER APP(NOT ANDROID APP) is in the background/foreground/killed.
If I am not wrong I know I have to code in native android but the thing is I am unable to find an example connecting the native java code with the flutter app(NOT android app) for push notification service. I am not searching for an FCM solution. Can anyone give me an example using plugins like the work manager, that works in the background? Moreover, in my flutter app, I want to navigate to another page when the notification is pressed.The task is like whenever the socket sends a message there will be a push notification (no matter the app is running or not), on clicking the notification the user can go to a specific page of the flutter app.
I want to show a custom popup message whenever the user disconnects a cellular call. The problem is how to detect when the app is not running. any leads would be helpful.
It's been a while and there have been many developments.
First, there are some answers at How to create a service in Flutter to make an app to run always in background?
Also, flutter/Background processes will basically point you to medium/Executing Dart in the Background with Flutter Plugins and Geofencing (Sept 2018)
which is a Geofencing sample that involves a partnership between isolates, native Android/iOS code via MethodChannel, and PluginUtilities.getCallbackHandle (PluginUtilities)
Alas, there are many plugins available now:
https://pub.dev/packages/background_location
https://pub.dev/packages/android_alarm_manager (Android)
https://pub.dev/packages/background_fetch
https://pub.dev/packages/workmanager
https://pub.dev/packages/audio_service
Was anyone implemented a reminder system in an ionic app without server side code?
Basically, I'm building an ionic app (targeting Android and IOS) and I want to setup reminders. But my main problem is figuring out how to trigger them when the app is closed.
Check that plugin out : https://github.com/katzer/cordova-plugin-background-mode
This let you not put the app from sleep when exiting app.
However, this will not replace a push notification feature.