darryncampbell / darryncampbell-cordova-plugin-intent

General purpose intent shim layer for cordova appliations on Android. Handles various techniques for sending and receiving intents.
MIT License
86 stars 134 forks source link

Ionic 4 support - unable make Intent call to UPI App #91

Closed ganesh045 closed 4 years ago

ganesh045 commented 4 years ago

Hi ,

I am using this plugin with Ionic 1 while it is working fine, now we are migrating the App to Ionic 4 but i have not seen any code or examples related to Intent calls for Ionic 4(In Web, StackOverFlow, ..) .

We are trying to make Intent call in the latest App with below code,

const options = {
  action: this.webIntent.ACTION_VIEW,
  url: 'path/to/file',
  type: 'application/vnd.android.package-archive'
}

this.webIntent.startActivity(options).then(onSuccess, onError);

package.json


    "@ionic-native/core": "~5.15.1",
    "@ionic-native/firebase-x": "^5.17.1",
    "@ionic-native/web-intent": "^5.17.1",
    "@ionic/angular": "^4.11.3",
    "com-darryncampbell-cordova-plugin-intent": "^2.0.0",
    "cordova-android": "^8.1.0",

but it's giving error as no activity found to handle intent { act=android.intent.action.view dat=packageName://pay?pa=following request.

can you suggest me a way to achieve the Intent calls in Ionic 4.

regards, Ganesh

darryncampbell commented 4 years ago

Sorry I never responded to this, that error indicates that the target app is not installed on the device, it does not look like it would be related to Ionic v1 / v4 support. Anyway, please re-open if this is still an issue with the plugin. For info, I created a project using Ionic v6 at https://github.com/ZebraDevs/DataWedge-Ionic-Demo as I know a lot of the previous samples I created were using ionic V1