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
Instantiate firebase messaging to access the API methods such as getToken() etc.
final FirebaseMessaging _firebaseMessaging = FirebaseMessaging();
Obtain a registration token that uniquely identifies the app instance by adding _firebaseMessaging.getToken() inside initState() of main.dart to ensure it's only obtained once when the app launches; save it in fcm_token variable.
To register contacts, POST to the following URL with the parameters urn, fcm_token and optionally name.
Visit contacts page to verify if the contact registration POST action above was successful(To access contacts you must be logged into RapirPro workspace):
Steps For Contact Registration on RapidPro
create a new branch from
develop
calledcontact-registration-install
Add
firebase_messaging
as a dependency in your pubspec.yaml file.Perform Android integration for
firebase_messaging
plugin.Import necessary dependencies into main.dart.
getToken()
etc.final FirebaseMessaging _firebaseMessaging = FirebaseMessaging();
Obtain a registration token that uniquely identifies the app instance by adding
_firebaseMessaging.getToken()
insideinitState()
ofmain.dart
to ensure it's only obtained once when the app launches; save it infcm_token
variable.To register contacts, POST to the following URL with the parameters
urn
,fcm_token
and optionallyname
.References:
https://pub.dev/packages/firebase_messaging
https://pub.dev/packages/firebase_messaging/example
The text was updated successfully, but these errors were encountered: