Open a1ssat opened 5 months ago
xcrun simctl push booted com.app.app push.json
{ "aps": { "alert": { "title": "Test", "body": "hello message" } } }
onInit(){ Push.instance.addOnMessage((message) { log('RemoteMessage received while app is in foreground:\n' 'RemoteMessage.Notification: ${message.notification} \n' ' title: ${message.notification?.title.toString()}\n' ' body: ${message.notification?.body.toString()}\n' 'RemoteMessage.Data: ${message.data}'); showMaterialBanner(message.toString()); }); Push.instance.addOnBackgroundMessage((message) { log('RemoteMessage received while app is in background:\n' 'RemoteMessage.Notification: ${message.notification} \n' ' title: ${message.notification?.title.toString()}\n' ' body: ${message.notification?.body.toString()}\n' 'RemoteMessage.Data: ${message.data}'); _showMaterialBanner(message.toString()); }); }
There's not enough information here yet.
send_ios.sh