You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently wrote a local plugin to work around the fact that the standard push notification plugin doesn't support critical alerts.
It's nothing fancy it just requests the right permissions on ios. When we were trying to extend the request-permission api which returns
{
"recieve": "granted", // follows the normal flow on ios and android depending on the api version either auto grants or follows the flow
"criticalAlert: "granted" , // follows the normal flow on ios, and on android currently auto-grants
}
What's the best way to override the behavior of the requestPermission method on android so it returns auto denies when a permission shape differs with android / ios
I did read through the implementation of the default permission system, it seems to call resolve on the call without an easy way to intercept the resolution
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Ionic Team and friends.
We recently wrote a local plugin to work around the fact that the standard push notification plugin doesn't support critical alerts.
It's nothing fancy it just requests the right permissions on ios. When we were trying to extend the
request-permission
api which returnsWhat's the best way to override the behavior of the
requestPermission
method on android so it returns auto denies when a permission shape differs with android / iosI did read through the implementation of the default permission system, it seems to call resolve on the call without an easy way to intercept the resolution
Beta Was this translation helpful? Give feedback.
All reactions