Open the Android app in Cordoba from the Calendar

Hi, I am using EddyVerbruggen / Calendar-PhoneGap-Plugin in my ionic application to save calendar events.

What I want to achieve, when I go to my calendar and click on this event, I want to open my application. How to do it?

+8
android cordova ionic
source share
1 answer

You will not be able to override the calendar functions to an ionic application. You can only open your ionic application through user links.

How to open an ionic application using a custom URL?

Mobile applications created using the Ionic Framework can use custom URL schemes using the LaunchMyApp plugin

Add the plugin to our project.

cordova plugin add https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git --variable URL_SCHEME=ionicapp 

If the command --variable URL_SCHEME=ionicapp needed, otherwise the plugin will not be able to add. You can then launch the application from any URL that starts as follows:

 ionicapp:// 

You can listen to various URLs and URL parameters in your application, and your application performs various actions. Add the following code worldwide:

 var handleOpenURL = function(url) { alert("RECEIVED URL: " + url); }; 

Textbook

+9
source share

All Articles