Start app from link in Email

8 posts, 0 answers
  1. Frank
    Frank avatar
    7 posts
    Member since:
    Nov 2012

    Posted 26 Apr 2013 Link to this post

    Hi.

    How can I get the app to start from an email?  I'm thinking some sort of link but not sure how to do it.  Detailed instructions would be fantastic.

    Thanks
  2. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 29 Apr 2013 Link to this post

    Hi Frank,

    What you are trying to achieve can be done with custom URL scheme (myapp:// for example) that gets registered for the application.

    For iOS Cordova handles this out-of-the box if the schema is defined in the Info.plist file. You can read more about it here. Icenium currently does not expose this configuration file for direct editing.

    For Android this can be implemented with Intents which gets configured in the AndroidManifest.xml and this custom Cordova plugin that handles the intent. Again Icenium currently cannot enable this scenario easily.

    We plan to expose those configuration files for editing in one of our next updates of the product. We are also working on adding support for custom Cordova plugins that will enable the Android scenario.

     

    All the best,
    Stefan Dobrev
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Kendo UI Dojo.
  3. Paul
    Paul avatar
    56 posts
    Member since:
    Jan 2006

    Posted 14 Jun 2013 Link to this post

    "Icenium currently does not expose this configuration file for direct editing."

    Is this something that will be exposed in the near future? I'd like to be able to open another Icenium application from a new Icenium application if possible using one of the following:

    <a href="app1://">Open App</a>
    <a href="com.xxx.app1://">Open App</a>

    Paul
  4. David Silveria
    David Silveria avatar
    234 posts
    Member since:
    May 2006

    Posted 14 Jun 2013 Link to this post

    Yes, those configuration files would be exposed for next version, end of the month!
  5. Paul
    Paul avatar
    56 posts
    Member since:
    Jan 2006

    Posted 26 Jul 2013 Link to this post

    David,

    I'm finally back around to dealing with this issue. I see that the Andriod and iOS config files have been exposed, but I'm still at a loss to how to configure these files. Where do I need to make changes to allow for me to simply call my custom app from another custom app using something along the lines of:

    <a href="app1://">Open App</a>
    <a href="com.xxx.app1://">Open App</a>

    I have not done previous Android or iOS development, so I am new to this and would love a detailed example, not just a link to iOS or an Android development site.

    Thanks in advance,

    Paul
  6. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 31 Jul 2013 Link to this post

    Hello Paul,

    While Apple has documentation covering this subject and Cordova has made sure this is handled gracefully out of the box (see here), the same does not apply for Android.

    As my colleague mentioned in previous post, one would need to use Intents configured in the AndroidManifest.xml (see Edit Configuration Files) and and WebIntent custom Cordova plugin that handles the intent. You can find more information on getting it to run in Icenium in the following forum thread. The first part is required for the custom URL scheme to work and the second part is required for handling any query string parameters by using the getUri method. In the sample project I've prepared and attached to this post, we use the query string params to navigate to a specific page in the opened app.

    Use the Add From Archive option in Mist/Graphite to import the archive in a blank project. Then you can test how it works by using a simple redirect from another app e.g.:

    <a href="myapp://views/navigate.html">Open App</a>

    I would prepare and post a blog next week that would detail the project creation.

    Regards,
    Steve
    Telerik

    Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
  7. Frank
    Frank avatar
    7 posts
    Member since:
    Nov 2012

    Posted 29 Aug 2013 Link to this post

    I imported the project just fine (nice feature).  I'm accessing a webpage with the link on it.  When I click the link in iOS I get "Safari cannot open the page because the address is invalid."  Is this because the app is running through Ion?
  8. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 03 Sep 2013 Link to this post

    Hi Frank,

    Just tested navigating from an app deployed in ION and it worked as expected. Please try with provisioned app deployed directly on device and if you're still having problems, please provide us with the HTML page from which you navigate and the device you test on.

    Regards,
    Steve
    Telerik

    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top