Add an empty extension using XCode new target template. The service extension is executed when the app is backgrounded or killed. When the app is running, this code is not called.
Details
Modify prepareIOSNotification in send.js by setting notification.mutableContent = true. Modify the code in service so that the body gets modified.
Test on a physical device:
- Run the app and send a message from other client - the notification should be displayed with the original body.
- Background the app and send a message - the modified notification should be displayed.
- Kill the app and send a message - the modified notification should be displayed.
Diff Detail
- Repository
- rCOMM Comm
- Branch
- ENG-687
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
This build is failing on iOS because No profiles for 'app.comm.NotificationService' were found. This service extension is a separate bundle app.comm.NotificationService and we probably need to create another provisioning profile - not sure if that's something I'm allowed to do. @ashoat could you take a look?
In the current state it is possible to modify a notification, but it's not possible to use any C++ code from comm library - it will be addressed in the next diff
What are the build failures about? Can you either confirm they are unrelated before landing, or re-trigger the build by running arc diff again?