Top

React-native initializing the SDK fails

Kommentare

3 Kommentare

  • Doha Tubaileh
    Hi Soufiane, 
     
    Thank you for your notes, the Docs are outdated in this part particularly, and we will fix it as soon as we can. 
     
     
    In the meanwhile, you can update your code like the following :
    ```
    public class MyApp extends Application {
     
        @Override
        public void onCreate() {
            super.onCreate();
             RainbowPackage.setApplication(this);
          //  RainbowPackage.initializeRainbowSdk(this, "applicationId", "applicationSecretKey", host); <= Just remove this line only and the sample app should be working fine
        }
    }
    ```
    1
    Aktionen für Kommentare Permalink
  • Soufiane Hajmhand

    Hello thank you for your answer,

    Is there also a way to tell which host I want to use, I want to work with the sandbox host (sandbox.openrainbow.com) but I think by default he takes the openrainbow.com host.

    I put the appId and secret key for the sandbox host but I see in the asyncStorage that the host by default is openrainbow.com.

    Should I just set the value in the AsyncStorage? If yes, where?

    1
    Aktionen für Kommentare Permalink
  • Doha Tubaileh

    Hello Soufiane,

    You can set the host value when you click 5 times on the following button [please check the attached image], and then you can change the host value from `openrainbow.com` to `sandbox.openrainbow.com`.

    And regarding `default always takes the openrainbow.com host`, indeed its a bug, we will fix it by the coming new release.

    1
    Aktionen für Kommentare Permalink

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

  • Fragen Sie die Gemeinschaft

    Brauchen Sie Hilfe? Stellen Sie Ihre Fragen in der Community, um Antworten von anderen Rainbow-Benutzern zu erhalten.

    Nachricht posten