React Native- Extra Parameters

Add the code below to your project to save the extra information of the users.

Run the following functions before calling the Subscribe function.

Don't submit rows you don't want updated

addExtra = async () => { await euroMessageApi.setUserProperty("email",this.state.user.email); await euroMessageApi.setUserProperty("keyID",this.state.user.keyID); await euroMessageApi.setUserProperty("pushPermit",this.state.user.pushPermit); await euroMessageApi.setUserProperty("gsmPermit",this.state.user.gsmPermit); await euroMessageApi.setUserProperty("emailPermit",this.state.user.emailPermit); } this.addExtra().then(()=>euroMessageApi.subscribe(token));

 

If you are working with us as an IYS integrator, you need to add the parameters below during the user registration phase.

Note: If your users are a corporate account, you need to send the RecipientType parameter as INDIVIDUAL, if not TRADEMARK.

await euroMessageApi.setUserProperty('ConsentTime', "2021-03-18 12:12:12") await euroMessageApi.setUserProperty('RecipientType', "BIREYSEL") await euroMessageApi.setUserProperty('ConsentSource', "HS_MOBIL")

 

Congrulations, you have completed the RMC integration


 

 

Copyright 2020 Related Digital