Since Chrome switched to the native OSX notifications, sometimes the notifications I try to show using web-push and my service worker do not appear.
They appear consistently in previous versions of Chrome.
Is there anything I'm supposed to have changed since they moved to make this work?
Make sure "DO NOT DISTURB" is toggled off:
Notification Center > Notifications (Scroll to the top)
Open Notification Center > Notifications > gear button in the lower-right corner of Notification Center
(https://support.apple.com/en-us/HT204079)
On the Notification Settings:
Click on Google Chrome (Badges, Sounds, Banners):
And toggle on "Allow Notification from Google Chrome":
There are a few reasons why notifications may not show, but it's likely that your site has the existing notifications still open in the notification center (click the very top right icon of your screen to verify they are there), and that you're updating these with a static tag rather than showing new notifications.
If clearing the notifications from the notification center causes this issue to go away then the issue is that you need to add renotify: true to the options you pass in to showNotification, or clear the previous notifications programmatically and show a new one either with the same tag or a new tag.
Related
How can I trigger the following behavior in Swift UI Tests via XCTest:
Get the app to foreground and inactive (applicationWillResignActive) and back to "foreground and active" (applicationDidBecomeActive)
Possible gestures, while app is in foreground and active, could be:
open app switcher and go back to app
open control center and hide control center
open notification center and hide notification center
I searched for something like that following fictive(!) code XCUIDevice.shared.doublePress(XCUIDevice.Button.home) or XCUIDevice.shared.swipeDownFromOutside(); XCUIDevice.shared.swipeUpFromOutside().
Or a more better way a method call to simulate an open app switcher, control center or notification center immediately.
Or in the best way to simulate the status applicationWillResignActive, applicationDidBecomeActive immediately.
Important to understand: the event applicationDidEnterBackground must not called - the app has to stay in foreground (but inactive)!
So recently on wwdc2017 Apple released a convenient way to work with multi app. You can see the multi App portion of the video link below.
https://developer.apple.com/videos/play/wwdc2017/409/
I am using ONE SIGNAL for push notification
ONE SIGNAL is providing functionality of actionable push by adding "actionButtons" key including in payload.
{"actionButtons" = {"id":"1","text":"Confirm","icon":""},{"id":"2","text":"Cancel","icon":""}, "actionSelected" = "1"}
So whenever push notification will appear on device, it will appear with two buttons "Confirm" and "Cancel" and based on user's selection 'id' of the button will be stored in "actionSelected" key.
Everything above is working perfectly whenever app is in either in foreground or in background in iOS 8+
But when user force quit application (swipe-up) notification isn't appearing on device.
I have also added "Remote Notifications" in background modes, all certificate is also set perfect. I don't know what am i missing.
If anyone got any idea about this issue then kindly help.
All suggestions are welcomed. Thanks in advance.
This is a limitation related to how OneSignal handles action buttons. OneSignal uses the content-available flag as part of a technique to support custom text on action buttons and this flag is ignored in cases where the application has been force-closed.
When force quitting any iOS app, that device becomes ineligible for notifications for that specific app until that app is ran again. So if you're testing open the app, and then close it (put in background).
I have my application developed on iOS 8 . I have implemented push notification in my application. In iOS 8 clicking on notification automatically clears that particular notification. But my requirement is notification should stay until clear manually. Please give suggestion how to achieve this.
This is a system behavior. You can not prevent this to happen.
If you need something to be always visible from the notification center, consider to create a Notification Center Widget.
Can IOS push notifications open another app via its URL scheme (ie. SOMEAPP://someUrlScheme)?
I've looked through the documentation but haven't seen any mention of this.
Directly from the notification bar I think it is not possible, but you can handle notification received event show a popup and launch another app on click event of that popup
I disable some iOS app notification feature, I move it to 'Not in Notification Center' of 'Settings' but sometime, it still can send notification to my iPhone, eg, Facebook, I am strange with this case, How does it implemented this feature ?
Don't confuse "in the notification center" with "push notifications enabled." I can remove an app from the notification center but still have it receiving push notifications in the form of badge numbers.
There is an "include" and a "do not include" section in Notification Center.
Tap "edit" at top right corner of the Notification Center. This allows you to drag apps around in the Notification Center.
Hold the app you want to stop push notifications from, by the lines on the right hand side to its name, and drag it into "do not include" section. It will automatically close all banner settings for the app, and voila! You are good to go.