Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6023] When you try to open a URL that does not exist you get the following error:

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2018-12-10T22:41:51.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterAndreas Pingas
AssigneeShak Hossain
Created2018-11-15T21:49:31.000+0000
Updated2018-12-10T22:41:51.000+0000

Description

var canOpenURL = Ti.Platform.openURL(‘test://company/30');
						
if (!canOpenURL) {

}
[ERROR] :  PlatformModule: (main) [83824,99750] Activity not found: test://company/30
[ERROR] :  PlatformModule: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=test://company/30 }
[ERROR] :  PlatformModule: 	at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1936)
[ERROR] :  PlatformModule: 	at android.app.Instrumentation.execStartActivity(Instrumentation.java:1615)
[ERROR] :  PlatformModule: 	at android.app.Activity.startActivityForResult(Activity.java:4472)
[ERROR] :  PlatformModule: 	at android.support.v4.app.BaseFragmentActivityApi16.startActivityForResult(BaseFragmentActivityApi16.java:54)
[ERROR] :  PlatformModule: 	at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:68)
[ERROR] :  PlatformModule: 	at android.app.Activity.startActivityForResult(Activity.java:4430)
[ERROR] :  PlatformModule: 	at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:751)
[ERROR] :  PlatformModule: 	at android.app.Activity.startActivity(Activity.java:4791)
[ERROR] :  PlatformModule: 	at android.app.Activity.startActivity(Activity.java:4759)
[ERROR] :  PlatformModule: 	at ti.modules.titanium.platform.PlatformModule.openURL(PlatformModule.java:214)
[ERROR] :  PlatformModule: 	at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)
[ERROR] :  PlatformModule: 	at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:63)
[ERROR] :  PlatformModule: 	at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:969)
[ERROR] :  PlatformModule: 	at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1194)
[ERROR] :  PlatformModule: 	at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:394)
[ERROR] :  PlatformModule: 	at ti.modules.titanium.ui.TableViewRowProxy.handleMessage(TableViewRowProxy.java:215)
[ERROR] :  PlatformModule: 	at android.os.Handler.dispatchMessage(Handler.java:101)
[ERROR] :  PlatformModule: 	at android.os.Looper.loop(Looper.java:164)
[ERROR] :  PlatformModule: 	at android.app.ActivityThread.main(ActivityThread.java:6541)
[ERROR] :  PlatformModule: 	at java.lang.reflect.Method.invoke(Native Method)
[ERROR] :  PlatformModule: 	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
[ERROR] :  PlatformModule: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
[ERROR] :  PlatformModule: (main) [1,99751] Activity not found: test://company/30
[ERROR] :  PlatformModule: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=test://company/30 }
[ERROR] :  PlatformModule: 	at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1936)
[ERROR] :  PlatformModule: 	at android.app.Instrumentation.execStartActivity(Instrumentation.java:1615)
[ERROR] :  PlatformModule: 	at android.app.Activity.startActivityForResult(Activity.java:4472)
[ERROR] :  PlatformModule: 	at android.support.v4.app.BaseFragmentActivityApi16.startActivityForResult(BaseFragmentActivityApi16.java:54)
[ERROR] :  PlatformModule: 	at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:68)
[ERROR] :  PlatformModule: 	at android.app.Activity.startActivityForResult(Activity.java:4430)
[ERROR] :  PlatformModule: 	at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:751)
[ERROR] :  PlatformModule: 	at android.app.Activity.startActivity(Activity.java:4791)
[ERROR] :  PlatformModule: 	at android.app.Activity.startActivity(Activity.java:4759)
[ERROR] :  PlatformModule: 	at ti.modules.titanium.platform.PlatformModule.openURL(PlatformModule.java:214)
[ERROR] :  PlatformModule: 	at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)
[ERROR] :  PlatformModule: 	at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:63)
[ERROR] :  PlatformModule: 	at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:969)
[ERROR] :  PlatformModule: 	at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1194)
[ERROR] :  PlatformModule: 	at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:394)
[ERROR] :  PlatformModule: 	at ti.modules.titanium.ui.TableViewRowProxy.handleMessage(TableViewRowProxy.java:215)
[ERROR] :  PlatformModule: 	at android.os.Handler.dispatchMessage(Handler.java:101)
[ERROR] :  PlatformModule: 	at android.os.Looper.loop(Looper.java:164)
[ERROR] :  PlatformModule: 	at android.app.ActivityThread.main(ActivityThread.java:6541)
[ERROR] :  PlatformModule: 	at java.lang.reflect.Method.invoke(Native Method)
[ERROR] :  PlatformModule: 	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
[ERROR] :  PlatformModule: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
[ERROR] :  EGL_emulation: tid 4652: eglSurfaceAttrib(1210): error 0x3009 (EGL_BAD_MATCH)

Comments

  1. Sharif AbuDarda 2018-11-16

    Hello, Can you explain a bit, what you feel the issue here? Also, we need the test platform details. Thanks.
  2. Rakhi Mitro 2018-11-28

    Hello [~andreas.pingas], Just passing as followup here. Are you able to get that sorted out?  Please let us know if you need help with this issue.
  3. Andreas Pingas 2018-11-29

    I have two apps the one app has a button that redirects you and opens the other app. I am using the method below however when the second app is not installed the following error appears. The issue above appears on Android devices. On iOS there is the Ti.Platform.canOpenURL as a result you dont need the above.
  4. Rakhi Mitro 2018-11-29

    [~andreas.pingas], Thanks for your feedback. It would be helpful if you can share a simple test case to reproduce your issues on our end and your environment details.

JSON Source