Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"notificationToken" required #4

Open
faruk4234 opened this issue Jul 4, 2022 · 2 comments
Open

"notificationToken" required #4

faruk4234 opened this issue Jul 4, 2022 · 2 comments

Comments

@faruk4234
Copy link

faruk4234 commented Jul 4, 2022

I did the setup in the documentation and placed the necessary data. But I am getting 'notificationToken' required error. I tried giving the notificationToken data null and null but the result did not change
Screen Shot 2022-07-04 at 23 24 53
.

    let deviceId = getUniqueId();
    RNDesk360.getInstance().initialize({
      appID:
        'pILqrvLynTfOKblGO3wKWRb2TBFX9PRwud3UWowsVmo4ppWsoFhms1A0OEcyX0aC92SHxxtgzsjTPYtX',
      deviceID: deviceId,
      appVersion: '1.0.0',
      languageCode: 'en',
      environment: Desk360Environment.SANDBOX,
      platform: Desk360Platform.GOOGLE,
      countryCode: 'tr',
      notificationToken: '',
      bypassCreateTicketIntro: true,
      name: 'Faruk',
      jsonInfo: {
        key: '2',
      },
    });
  };
@nazrdogan
Copy link

I m not sure if you are using Firebase Notification. but you should pass Firebase messaging token to notificationToken

messaging()
      .getToken()
      .then((token) => {

@fatiherdogan01
Copy link

Same issue on the android.

const token = 'xxx';
RNDesk360.getInstance().initialize(
    {
    appID: config.desk360AppId,
    deviceID: deviceId,
    environment: Desk360Environment.SANDBOX,
    platform: Desk360Platform.GOOGLE,
     // ... other properties
    },
    token,
); 

I am not getting any errors with this configuration. But push notification not working.
The push notifications part is not in the documentation. I'm not sure push notifications are supported on android.
Also i don't see the push notifications settings in the dashboard.

Have you any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants