-
Notifications
You must be signed in to change notification settings - Fork 136
Issues sending intent to a specific app #116
Comments
|
You may get a more verbose error message if you access the plugin directly rather than going through WebIntent, (window).plugins.intentShim.startActivity(...) |
Do you have documentation for what you are trying to call? How would you call this with a native app? |
It looks like you will need to fork and modify this plugin. The plugin does not support either The other observation is you are not specifying the component in your javascript: https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent/blob/master/src/android/IntentShim.java#L499 but even if you specified it, you can't call startForegroundService. |
Hi @darryncampbell ,
Thanks, |
I don't know... it seems to match the native code you put earlier that worked. Have you tried just putting the startService bit and see if that works:
|
Thanks @darryncampbell , yes i tried startService, did not work...no error etc in log... I also tried following but could not compile as could not find android support class ContextCompat Any other place/forum/specs to seek help on this issue? Thanks, |
According to your image at https://user-images.githubusercontent.com/17508664/90535322-c52a4c80-e148-11ea-9747-094e57b516c6.png the service needs to have been granted some permissions before you can call the service, have you tried implementing that entire code block? You might try reaching out to the program author for more help |
Thanks @darryncampbell issue resolved, it needs SDK level > 26 to work. Thanks a lot |
Eureka! Typically you should surround code with |
Hey Darryn,
I am trying to start another activity with some simple extras, however I am unsure where to point to the specific application.
Currently it is defined as such:
(The app I am trying to open is com.nymi.nbeservice)
However, this is causing a completely separate app to open called TickTick (no idea how).
The logs are here:
Hope you can take a quick look and let me know what I'm doing wrong.
Thanks so much,
Jeremy Power
The text was updated successfully, but these errors were encountered: