You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.
This plugin works perfectly and I thank you so much for it!
However, I'm experiencing some issues with intents occurring multiple times. My context is an unofficial mobile client for the children's programming site Scratch. I'm using this plugin to offer users the opportunity to forward links from the Scratch website directly to the app. Opening with my app works fine, but when you select "Open with Chrome", the "open with" popup appears up to four or five times before it finally opens the site. Any ideas of what could be causing this? Here's my only implementation of your plugin:
import{isPlatform}from'@ionic/vue';if(isPlatform('android')){try{window.plugins.intentShim.onIntent(function(intent){leturi=utils.matchRegexes(intent.data);if(uri.type=="homepage"){return0;}elseif(uri.type=="project"||uri.type=="studio"){window.location.replace(`/tabs/tab1?${uri.type}=${uri.id}`);}});}catch{console.error('Could not find Android Intent Shim plugin - see https://ionicframework.com/docs/native/web-intent');}}
The text was updated successfully, but these errors were encountered:
I'm now thinking it may have to do with us not providing a requestCode, because of which 1 is used by default, but it seems requestCode is like an 'Intent identifier' rather than 'just' the code it returns.
Testing that theory now.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This plugin works perfectly and I thank you so much for it!
However, I'm experiencing some issues with intents occurring multiple times. My context is an unofficial mobile client for the children's programming site Scratch. I'm using this plugin to offer users the opportunity to forward links from the Scratch website directly to the app. Opening with my app works fine, but when you select "Open with Chrome", the "open with" popup appears up to four or five times before it finally opens the site. Any ideas of what could be causing this? Here's my only implementation of your plugin:
The text was updated successfully, but these errors were encountered: