When I use webviewController.runJavascript(dataJs) of webview the app immediately cannot receive notifications from pusher beam but the app can still receive notifications in background
Please see the image below, Is there any way to fix this?
enter image description here
enter image description here
enter image description here
Related
I have a feature to upload image from device to webview.
First time I access camera, it show popup request permission. If I cancel request, it get black screen camera.
enter image description here
enter image description here
I tried debugging on the app and researching but got no result.
I'm using plugin flutter_inappwebview 5.7.1.
Thanks for your help.
I am using FCM and Flutter Local Notification's plugin for displaying notifications. The problem is that the big image in the notification is not visible on all devices, like Vivo. Only the title and body is visible.
Any fix for this?
please is there a way to display or open a Flutter page when screen is locked in Flutter like how WhatsApp displays incoming call page when screen is locked? I used Wake up plugin but can't display the page on screen locked. Please I need a guide to do that. Thanks in advance.
What you are looking for is called a time sensitive notification with a full screen notification. What it does is that if the screen is locked it opens the activity linked to the pending intent used for full screen notification. When the phone is unlocked, it shows a heads up notification instead. You must have seen this behavior with all kinds of telephony apps and alarm apps.
A flutter app runs inside a single activity, so if you mark that as the activity to show during the locked state, the app will show. But it will act similar to how the app would when you launch it from start. Also the behavior is unpredictable as it is behind a wakelock. So a better option would be to move it to a separate activity and do the needful. Example of how to implement full screen notifications.
https://medium.com/android-news/full-screen-intent-notifications-android-85ea2f5b5dc1
I am sending push notification an iOS app using php.
Whenever the push notification is displayed in the iPhone I want to display my App's Icon in the notification.
How this can be done ?
If you are looking for something like below:
It's default behavior of push notification in Lock screen.
You don't need to do anything to display your notification like this.
Image from Google.
The notifications are displayed either as banner or as alert. Your cant set any app icon on the alert and the icon on the banner is automatically taken from your app icon in the bundle.
There are three things a push notification can do:
Display a short text message
Play a brief sound
Set a number in a badge on the app’s icon.
I don't think you can manually set the app icon in push notification message.
Ray Wenderlich did a great tutorial on this. Try this two links:
Part 1: http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12
Part 2: http://www.raywenderlich.com/3525/apple-push-notification-services-tutorial-part-2
On this page it says:
Additional Information
Applications can offer up to three types of push notifications:
Sounds: Plays an audible alert
Alerts: Displays an alert on the screen
Badges: Displays an image/number on the application icon
Source: http://support.apple.com/kb/HT3576
How do we do that?
Thanks,
I think that information in confusing on Apple's part, but you can't use an image as a badge. The red badge circle with the number is what they are referring to as the "image".