React native app is crashing on navigation event, the screen that crashes is depending on id the, id from param is used to call api, the api data is using in Webview. it some time crashes otherwise work fine,
I am sharing link that may help to find issue.
https://sentry.io/share/issue/66198bd33cc74911bd5b242f91d918c8/
Related
I have created a Fragment that has a WebView. It receives a permission request via the website for resources (camera access). After checking permission status locally, ActivityResultLauncher’s object is received as a return value from the registerActivitForResult method at the start of the fragment.
Its launch method is called and it works well and permission dialog opens but the callback for registerActivityForResult is not getting called when the user "allows" the permission.
The most important part is: that it doesn’t work only when this fragment is added as a React Native Component via createViewManager as defined on React Native docs.
What’s weird is it works perfectly fine if it is used natively and is added directly on MainActivity of a native android app.
It seems to be an issue with React Native if you are using androidx Fragment. Try using Fragment from app.fragment and Permission API's will work with react native.
I am creating an application with the use of react native and I want to handle exceptions in some cases when an application can get crashed. I want to show that exception in appcenter and also not want that the application actually crash. I am using appcenter already and implemented it for building the app. I am also getting crash reports there but it shows when the actual application got crashed. But I want only the reports there while not crashing the application.
you can use appcenter-analytics and appcenter-crashes
If you use the library, you can find out when a crash occurs.
appcenter
To manage the event separately, the following method can be used.
Example
import Analytics from "appcenter-analytics";
...
Analytics.trackEvent("eventName", {
[key]: value,
});
appcenter
When user is using an android app and on one page he doesn't get any response but loading progress bar is visible then how developer can be notified for this issue? Is there any tool or any other way to implement this type of functionality in the app.
Implement the firebase crash analysis in your Project . Firebase itself give you the Trackpath via email.
Here you will get the method , line number, exception type everything in the email .
I'm building a meteorjs app and deploying it as a native (cordova) app for Android and iOS.
I need to deep link to my app, so I can launch it by following a link on a website.
I've implemented URL Scheme using the cordova plugin by Eddy Verbruggen (https://github.com/EddyVerbruggen/Custom-URL-scheme) and I managed to get my app launched by following a link of the "myapp://" format.
The problem is that, even though the app is getting successfully launched, the handleOpenUrl hook is not getting triggered.
Meteor.startup(function() {
handleOpenURL = function handleOpenURL(url) {
console.log("received url: " + url);
// parse url and proceed accordingly
}
});
Nothing gets logged. So I have no way of passing any parameters to my app, or even detect that the app was launched via a link that follows the 'myapp://' URL scheme.
Also, I noticed that even though my app is already open, if I switch to the browser and click on a special "myapp://" link, instead of switching to my (already open) app, a new instance of the app is getting launched.
[edit] Turned out the two problems were related. Once I prevented a new instance of the app from being initialized, the handleOpenUrl function was triggered successfully.
I'm using the Android emulator for all my tests. I haven't had the chance to test on iOS yet.
[edit] iOS didn't give this problem at all. It was only an Android problem.
If anyone out there has any experience on implementing custom URL scheme in meteorjs, your feedback is much appreciated!
I managed to fix the issue I was facing. Here is the solution, for anybody else who is facing similar problems.
First of all, it was only occurring on Android. iOS had no problem whatsoever to launch the app and trigger the handleOpenUrl function.
The two issues that I was facing on Android turned out that there were related to each other. The fact that a new instance of the app was triggered every time, prevented the handleOpenUrl function from being triggered.
Both problems were fixed by adding a single line of code on the mobile-config.js file:
App.setPreference("AndroidLaunchMode", "singleTask");
In my android application, I am using tweet feature and I am using as explained in http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt5p1. It is not working in version 4.0.3 android device. The childbrowser is not getting opened. I am using cordova-2.0.0 but still it's not working. May I know the problem?
Regards
Ashwini
For twitter login page to get opened, your device must be set to current date and time properly otherwise, it doesn't open. Because, we need to pass current timestaps to get request_token. Check once.