How to send Remote Push Notifications to an iOS Simulator with Xcode 14
#iOS #Testing #PushNotifications #APNS
https://ohmyswift.com/blog/2023/05/28/testing-remote-push-notifications-in-ios-simulator-with-xcode-14/
#iOS #testing #pushnotifications #apns
【Push Notifications Console】APNsプッシュ通知のテスト方法
https://qiita.com/hoshisuma/items/be4f250b690f656033ff?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
#iOS #APNS #Push通知 #WWDC
Today, I will (hopefully) be finishing the whole Push Notification issue. We found out so many things about the legacy system by trying to implement push in the new clients, it is unbelievable…
There is so much history, so many things were done that are completely obsolete nowadays, it is amazing…
In the new client, you can set chat-specific notification sounds (so far it works on everything except Android), which were not available in the old clients. Since the server actually used to send the sound-name in the PN, we need to change many things in the server.
Also, the server actually used to tell the client what kind of message the PN was about: Group Invite, Private, Internal, Channel… The new client doesn’t care and doesn’t **need** to care. It seems it was their way to tell which message was higher priority…
For example, group invites were always shown regardless of the user’s setting wrt to “Do not disturb me”… Even if the sender was muted…
Aaaaanyway, lots of fun…
#Flutter #Cicero #Ginlo #Ginlo_II #iOS #Android #macOS #Windows #Linux (hopefully) #APNS #Firebase
#flutter #cicero #ginlo #ginlo_ii #ios #android #macos #windows #linux #apns #firebase
Figured out why #iOS didn’t work. They are using the legacy Firebase-API (which is still ok). There, I need to use “content_available”: true and “mutable_content”: true if I want to send a silent PN to the client.
Since all our messages are E2E-encrypted, I MUST send silent PNs. It is also required that we use “priority”: “high”, in order to get *some* chance to get the PN delivered.
Luckily, I can use #Insomnia to test what format the PN-JSON has to be to be successful on #Firebase.
Since the existing Firebase-Client in the legacy Java-Code wasn’t meant for iOS, I need to add these properties to the existing Java Code. So yeah, then, hopefully, it should work.
#ios #insomnia #firebase #flutter #apns #pushnotification
So, yeah, second day of “Push Notifications”…
Android works, but there is so much to do there: I need to instantiate a big chunk of the main app int he second isolate, just for the PN to work *argh*
iOS: The problem with push notifications is you can’t really test it quite reliably. If you don’t receive it, what then? Why? Didn’t you receive anything or was nothing sent.
For information: This is how the flow works
Client sends message -> Cicero-Server receives it -> Cicero-Server informs Firebase -> Firebase connects to APNS -> APNS sends a message to other client
So:
C1 -> S -> FB -> APNS -> C2
But where in the chain it breaks you don’t know. The only thing for sure is that C1 successfully delivered to S.
#WorkTopics #APNS #Cicero #Ginlo_II #Flutter #iOS #Android #macOS #Windows #Linux (hopefully)
#worktopics #apns #cicero #ginlo_ii #flutter #ios #android #macos #windows #linux