How Google's Gmail app on iPhone disable notifications? -
my question can seems weird, realize when receive push new mail gmail app , open gmail on web page, notification disappear.
can explain me how working ?
this related this question, though it's not exact duplicate.
this can implemented apple push notifications.
your server has maintain each user list of device tokens of devices belonging user (iphones, ipads, etc...).
when user reads message on 1 platform (whether via web browser or via mobile application), can execute api call on server notify user read message.
then server can send follow-up push notification devices belonging user "badge"=0 (and without "alert" , "sound" fields), , notification cleared lock screen , app icon.
Comments
Post a Comment