Closed Maharshi01 closed 3 years ago
@Maharshi01 do you enable deep linking listener before that? Or any other listener?
No, I didn't call any listener before invoking...I directly invoked the method in componentDidMount.
OK thank you, I will try to reproduce. If you enable deep linking listener before trigger in-app(application crash). It’s a known bug and we’ll solve it soon. Inapp without it should work ok.
Uh-oh, I have one question then we implemented and called the firebase deep-link listener function in the homepage. So, do you think the crash might be because of that ? And also the issue is not occurring in android, is this expected?
No, it should be just our function, and yes it is only on iOS.
Hi Aleksander,
Any update on this?
Hi @Maharshi01
Not yet, I hope we will have some update soon
Hi @acamarinkovic Hope you are doing well, Can you please let me know if there is any progress regarding the issue? so that we can plan accordingly..
@Maharshi01 Still, we can't reproduce those issues. It is not related to the deep linking. Is this issue reproducible with our test application or your test application?
Hi @acamarinkovic This issue occurred while triggering in-app in the UMobile code, i was unable to replicate the issue in your test application or mine because there are no javascript stack trace which is pointing to the issue.
@Maharshi01 Can you pls explain to us what is no javascript stack trace in your application? And how we can create the same setup?
I captured the crash in firebase, hope this can help
Javascript stack trace is just the error logs in chrome console......What I was trying to say is that after triggering the function crash is happening right, after which there are no logs in chrome console
Thank you. Yes, this will help us a lot
If something is unclear, please ping we can connect if you want to debug in my system. Thanks :)
Hi @acamarinkovic
I have found the issue, can able to replicate both in your sample project and mine
@Maharshi01 can you share details? How we can reproduce in a test application?
It's happening because of invoking addPushListener before triggerInApp function. You can replicate in your test application by clicking on add push button at the buttom and later click on any of the in app button, the application will crash.
Ok, thank you can you use and test the application without addPushListener? In the meantime, we will do our best to solve this issue
Okay, Without calling it the application is working fine.bt the question is if I don't invoke this method will I able to receive notifications? 'cause iam just calling Mapp.setPushEnabled(true)
Mapp.setPushEnable(true) Is enough
Okay.
Hi @acamarinkovic,
App is getting crashed in iOS when I invoke Mapp.triggerInApp() for almost all the inApp events that i had integrated in the project. Firstly, I invoked it in componentDidMount() method and then when I navigate to the page, app is getting immediately crashed and there are no js logs, so i have attached the native logs from xcode in the link below. I have also attached the screen recording of the crash and the functional usage in the code. Please help to solve the issue.
Native logs : https://dpaste.org/DUiH
Thanks
P.S: Using the latest version("react-native-mapp-plugin": "^1.0.3-beta7")
https://user-images.githubusercontent.com/48430425/121193044-2283bb80-c88b-11eb-8536-232229c521e9.mov