GithubHelp home page GithubHelp logo

Comments (7)

tjuric avatar tjuric commented on August 17, 2024 1

Thank you for details @dericksa,
We'll try to check the other reported bug as well, but I'm not yet sure when. We'll provide you updates on this thread.

BR,
Tereza

from mobile-messaging-react-native-plugin.

riskpp avatar riskpp commented on August 17, 2024 1

Hi @dericksa we released 3.0.3 version with fix for java.lang.IllegalArgumentException: Receiver not registered

BR,
Olga

from mobile-messaging-react-native-plugin.

dericksa avatar dericksa commented on August 17, 2024

We are also facing this:

Caused by java.lang.NullPointerException
       at java.util.Hashtable.put(Hashtable.java:461)
       at org.infobip.mobile.messaging.mobileapi.MobileApiResourceProvider.getGenerator(MobileApiResourceProvider.java:201)
       at org.infobip.mobile.messaging.mobileapi.MobileApiResourceProvider.getGenerator(MobileApiResourceProvider.java:191)
       at org.infobip.mobile.messaging.mobileapi.MobileApiResourceProvider.getMobileApiAppInstance(MobileApiResourceProvider.java:132)
       at org.infobip.mobile.messaging.MobileMessagingCore.installationSynchronizer(MobileMessagingCore.java:1899)
       at org.infobip.mobile.messaging.MobileMessagingCore.setCloudTokenUnreported(MobileMessagingCore.java:973)
       at org.infobip.mobile.messaging.MobileMessagingCore.setCloudToken(MobileMessagingCore.java:677)
       at org.infobip.mobile.messaging.cloud.RegistrationTokenHandler.sendRegistrationToServer(RegistrationTokenHandler.java:35)
       at org.infobip.mobile.messaging.cloud.firebase.FirebaseRegistrationTokenHandler.handleNewToken(FirebaseRegistrationTokenHandler.java:37)
       at org.infobip.mobile.messaging.cloud.MobileMessagingCloudHandler.handleNewToken(MobileMessagingCloudHandler.java:69)
       at org.infobip.mobile.messaging.cloud.MobileMessagingCloudHandler.handleWork(MobileMessagingCloudHandler.java:49)
       at org.infobip.mobile.messaging.cloud.MobileMessagingCloudService.onHandleWork(MobileMessagingCloudService.java:119)
       at org.infobip.mobile.messaging.platform.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:413)
       at org.infobip.mobile.messaging.platform.JobIntentService$CommandProcessor.doInBackground(JobIntentService.java:404)
       at android.os.AsyncTask$3.call(AsyncTask.java:378)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:919)

from mobile-messaging-react-native-plugin.

tjuric avatar tjuric commented on August 17, 2024

Hi @dericksa,

The first issue java.lang.IllegalArgumentException: Receiver not registered: is affecting only our RN plugin (Android platform). We'll provide a fix for it in the upcoming week. Thanks for reporting it.

The second issue is related to the native Android SDK and we did have it reported long time ago (but with different stacktrace), did changes that silenced this particular issue, and we were unable to reproduce it later on. Your example log is related to our library trying to fetch application code to authorize backend call after we got a new token from Firebase as far as I see from your logs.
Could you please provide us more details about it:

  1. how do you provide app code to our SDK?
  2. which devices experience this bug?
  3. what OS versions?
  4. were you able to reproduce it yourself?
  5. how often does this bug happen in your app (some percentage of devices)?

BR,
Tereza

from mobile-messaging-react-native-plugin.

dericksa avatar dericksa commented on August 17, 2024

@tjuric Hello, thanks for replying:

We get the appCode from AppConfig, which gets from an env file.

const appCode: string = AppConfig.mobileMessageAppCode;

    export const init = () => {
        mobileMessaging.init(
            {
                applicationCode: appCode,
                ios: {
                    notificationTypes: ['alert', 'badge', 'sound']
                }
            },
            () => {
                logDebug('MobileMessaging started');
            },
            error => {
                logDebug('MobileMessaging error: ', error);
            }
        );
    };
  1. and 3. There are different devices with different OS versions experiencing it:
    Redmi Note 9 Pro, GalaxyA71, GalaxyS10e - Android 10
    Galaxy S10 - Android 11
    Galaxy J7 - Android 6.0.1

  2. We were not able to reproduce it

  3. Since we launched, it happens 1-5 times a day

from mobile-messaging-react-native-plugin.

tjuric avatar tjuric commented on August 17, 2024

Hi @dericksa,
We've released MM RN plugin version 3.1.1 with a few bug fixes on Android. We've fixed cases that we've noticed in our code related to your reported issue.

Please, try it out and update us on the new status.

BR,
Tereza

from mobile-messaging-react-native-plugin.

tjuric avatar tjuric commented on August 17, 2024

I'll close this one cause we've released a fix for this particular case. If you encounter it again, feel free to reopen this one.

from mobile-messaging-react-native-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.