sampie777 / hymnbook2

Mobile hymn book app.
https://hymnbook.sajansen.nl/
Other
2 stars 0 forks source link

Mute Could not open mailto URLs #234

Open sampie777 opened 5 months ago

sampie777 commented 5 months ago

I do not want to see an error if the user doesn't have a mail app installed.

Error message;

Could not open URL 'mailto:XXX@gmail.com?subject=Hymnbook': No Activity found to handle Intent { act=android.intent.action.VIEW dat=mailto:xx.xxxxxxx@xxxxx.xxxxxxxxxxxxxxxxxxxx flg=0x10000000 }

Error json:

{"nativeStackAndroid":[{"lineNumber":132,"file":"IntentModule.java","methodName":"openURL","class":"com.facebook.react.modules.intent.IntentModule"},{"lineNumber":-2,"file":"Method.java","methodName":"invoke","class":"java.lang.reflect.Method"},{"lineNumber":372,"file":"JavaMethodWrapper.java","methodName":"invoke","class":"com.facebook.react.bridge.JavaMethodWrapper"},{"lineNumber":188,"file":"JavaModuleWrapper.java","methodName":"invoke","class":"com.facebook.react.bridge.JavaModuleWrapper"},{"lineNumber":-2,"file":"NativeRunnable.java","methodName":"run","class":"com.facebook.jni.NativeRunnable"},{"lineNumber":938,"file":"Handler.java","methodName":"handleCallback","class":"android.os.Handler"},{"lineNumber":99,"file":"Handler.java","methodName":"dispatchMessage","class":"android.os.Handler"},{"lineNumber":27,"file":"MessageQueueThreadHandler.java","methodName":"dispatchMessage","class":"com.facebook.react.bridge.queue.MessageQueueThreadHandler"},{"lineNumber":201,"file":"Looper.java","methodName":"loopOnce","class":"android.os.Looper"},{"lineNumber":288,"file":"Looper.java","methodName":"loop","class":"android.os.Looper"},{"lineNumber":228,"file":"MessageQueueThreadImpl.java","methodName":"run","class":"com.facebook.react.bridge.queue.MessageQueueThreadImpl$4"},{"lineNumber":920,"file":"Thread.java","methodName":"run","class":"java.lang.Thread"}],"userInfo":null,"message":"Could not open URL 'mailto:XXX@gmail.com?subject=Hymnbook': No Activity found to handle Intent { act=android.intent.action.VIEW dat=mailto:xx.xxxxxxx@xxxxx.xxxxxxxxxxxxxxxxxxxx flg=0x10000000 }","code":"EUNSPECIFIED"}

Error native stack:

[{u'methodName': u'openURL', u'class': u'com.facebook.react.modules.intent.IntentModule', u'file': u'IntentModule.java', u'lineNumber': 132}, {u'methodName': u'invoke', u'class': u'java.lang.reflect.Method', u'file': u'Method.java', u'lineNumber': -2}, {u'methodName': u'invoke', u'class': u'com.facebook.react.bridge.JavaMethodWrapper', u'file': u'JavaMethodWrapper.java', u'lineNumber': 372}, {u'methodName': u'invoke', u'class': u'com.facebook.react.bridge.JavaModuleWrapper', u'file': u'JavaModuleWrapper.java', u'lineNumber': 188}, {u'methodName': u'run', u'class': u'com.facebook.jni.NativeRunnable', u'file': u'NativeRunnable.java', u'lineNumber': -2}, {u'methodName': u'handleCallback', u'class': u'android.os.Handler', u'file': u'Handler.java', u'lineNumber': 938}, {u'methodName': u'dispatchMessage', u'class': u'android.os.Handler', u'file': u'Handler.java', u'lineNumber': 99}, {u'methodName': u'dispatchMessage', u'class': u'com.facebook.react.bridge.queue.MessageQueueThreadHandler', u'file': u'MessageQueueThreadHandler.java', u'lineNumber': 27}, {u'methodName': u'loopOnce', u'class': u'android.os.Looper', u'file': u'Looper.java', u'lineNumber': 201}, {u'methodName': u'loop', u'class': u'android.os.Looper', u'file': u'Looper.java', u'lineNumber': 288}, {u'methodName': u'run', u'class': u'com.facebook.react.bridge.queue.MessageQueueThreadImpl$4', u'file': u'MessageQueueThreadImpl.java', u'lineNumber': 228}, {u'methodName': u'run', u'class': u'java.lang.Thread', u'file': u'Thread.java', u'lineNumber': 920}]

Error stack:

Error: Could not open URL 'mailto:XXX@gmail.com?subject=Hymnbook': No Activity found to handle Intent { act=android.intent.action.VIEW dat=mailto:xx.xxxxxxx@xxxxx.xxxxxxxxxxxxxxxxxxxx flg=0x10000000 } at promiseMethodWrapper (address at index.android.bundle:1:81245) at openURL (address at index.android.bundle:1:605795) at openLink (address at index.android.bundle:1:1185402) at open (address at index.android.bundle:1:2216483) at _performTransitionSideEffects (address at index.android.bundle:1:389922) at _receiveSignal (address at index.android.bundle:1:389512) at onResponderRelease (address at index.android.bundle:1:388326) at onResponderRelease (address at index.android.bundle:1:384135) at apply (native) at invokeGuardedCallbackImpl (address at index.android.bundle:1:312209) at apply (native) at invokeGuardedCallback (address at index.android.bundle:1:312266) at apply (native) at invokeGuardedCallbackAndCatchFirstError (address at index.android.bundle:1:312298) at executeDispatch (address at index.android.bundle:1:312430) at executeDispatchesAndReleaseTopLevel (address at index.android.bundle:1:316679) at forEach (native) at forEachAccumulated (address at index.android.bundle:1:313928) at anonymous (address at index.android.bundle:1:317031) at batchedUpdatesImpl (address at index.android.bundle:1:376126) at batchedUpdates (address at index.android.bundle:1:316599) at _receiveRootNodeIDEvent (address at index.android.bundle:1:316872) at receiveTouches (address at index.android.bundle:1:370910) at apply (native) at __callFunction (address at index.android.bundle:1:85927) at anonymous (address at index.android.bundle:1:84279) at __guard (address at index.android.bundle:1:85232) at callFunctionReturnFlushedQueue (address at index.android.bundle:1:84237)

Error original code: EUNSPECIFIED Error name: Error

Rollbar error: Failed to open URL