v3rm0n / intercom_flutter

Flutter wrapper for Intercom libraries
95 stars 141 forks source link

Api call failed: {"error":"Forbidden request"} #446

Closed jpmangoit closed 4 months ago

jpmangoit commented 4 months ago

run the example app, now i'm getting this error : Api call failed: {"error":"Forbidden request"} code : Center( child: TextButton( onPressed: () async {

          await Intercom.instance.loginIdentifiedUser(
            email: 'jp@mangoitsolutions.com',
          );
          Intercom.instance.displayMessenger();
        },
        child: Text('Show messenger'),
      ),
    ),
  ),

after changing the code:

await Intercom.instance.loginUnidentifiedUser( statusCallback: IntercomStatusCallback( onSuccess: () => print('success'), onFailure: (error) => print(error), )); Intercom.instance.displayMessenger();

still getting same error

deepak786 commented 4 months ago

Did you change the Intercom keys in the example app here https://github.com/v3rm0n/intercom_flutter/blob/ff065c5f2998e12ad9113ec1b9776f0e7f6c63a6/intercom_flutter/example/android/app/src/main/kotlin/io/maido/intercomexample/MyApp.kt#L12

deepak786 commented 4 months ago

Duplicate of https://github.com/v3rm0n/intercom_flutter/issues/392

aghyad97 commented 3 months ago

Please check out my comment here hoping it will solve the issue for you

https://github.com/v3rm0n/intercom_flutter/issues/392#issuecomment-2262724339