chabokpush / chabok-client-rn

Chabok react native wrapper
https://doc.chabokpush.com/react-native-bridge/introducing.html
5 stars 5 forks source link

Set App id and other parameter #1

Closed alikianinejad closed 6 years ago

alikianinejad commented 6 years ago

i have configure my project based on Instruction for react-native ios project but in basic usage i can't find how to pass parameters app_id, username, password and ... '

Husseinhj commented 6 years ago

Updated the readme file. Thanks

const options = {
  "appId": "APP_ID",
  "apiKey": "API_KEY",
  "username": "USERNAME",
  "password": "PASSWORD",
  "isDev": true
};

this.chabok = new chabok.AdpPushClient();

this.chabok.initializeApp('APP_Name', options , (response) => {
  console.log('app initialized', response)
});

....