iOS 16 Popup request notification permission can be display multi times? - ios

I'm having a problem in iOS. When popup request notification permission display then I dismiss pop up by button home or navigation bar (Not click to Allow or Don't Allow) => Not display setting Notification in app setting (Status not determined) => request notifications permission again => Popup displayed again.
I can not find any doc about this behavior. Is this a change in iOS 16?
Thank you for your interest.
Has anyone had this problem?

Related

Web push notifications not showing since Chrome switched to OSX notifications

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.

How to get popup alert for message received in ios

I am learning IOS and could not find that in a messaging app how to get the alert (popup box on screen and NOT a banner on top) for a message received (like in whatsapp or a built in messaging app).
Also, is it possible to get the alert if the app is open (like in whatsapp if we are using whatsapp then wee do not receive any pop up or banner for the message received).
Thanks in advance
If you want to receive popups in opened app you should create custom view. Native alerts about push notifications shown only if app in background or suspended and it's appearance customised by device settings
For example, you could use this library for popup box notifications or this for banner style

How to handle VOIP Status Bar (back to app) in iOS

I am using QuickBlox for VOIP calling. When I press Home button, while being in call, iOS show red status bar, when clicked, it take the user back to app.
Question: How I can know user came back to app by clicking on that red status bar?
Please look at https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/StrategiesforHandlingAppStateTransitions/StrategiesforHandlingAppStateTransitions.html
I think applicationDidBecomeActive: and applicationWillEnterForeground: might help you

iOS Push Notification open different app

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

PushNotification in iOs and Application icon is clicked

I receive PushNotification as badge as well as alert and are displayed as badges on the app icon.
I receive the payload successfully when I click on alert, which appears at top area of the screen.
But, if the notification is received and I click on the application icon i don't get the payload in any of below mentioned the methods.
application:didFinishLaunchingWithOptions:
application:didReceiveRemoteNotification:
So, what could be the problem or have I missed something in handling such case.
That would be expected behavior. You don't want to show the push notification for the user if he himself did not actively chose to to tap on the alert. If user is in your app while receiving notification you can ask the user if he wants to view it or dismiss it.

Resources