apptentive / apptentive-cordova

A plugin for Cordova that lets your app be Apptentive.
https://learn.apptentive.com/knowledge-base/integrating-the-apptentive-cordova-sdk-plugin/
BSD 3-Clause "New" or "Revised" License
3 stars 13 forks source link

Universal deep link opened by Note button opens blank page in Safari #74

Open cgs opened 3 years ago

cgs commented 3 years ago

Platform: Cordova iOS 14.0.1

I have universal deep link support in my app, which I have confirmed is working by clicking on the deep link that I manually typed into the Notes iOS app then clicked on. This correctly opens my app and goes to the correct page.

I set up a Note in Apptentive, with one of the buttons set to the same exact link mentioned above (Open URL / Deep Link). When my note triggers and I click the button for the link, it tries to load the deep link in Safari, which just shows a blank page. Side note: There is a reference to the documentation in the Note setup page in Apptentive about deep links, but nothing is actually in the knowledge base about it.

I'm not sure why this is happening, perhaps it's the way the button action is opening the url?

cgs commented 3 years ago

Ok, so deep links using URL schemes still work - but it would be great if Apptentive supported universal deep links as well. I guess there's no way to tell in the Apptentive UI if a url is deep link or just a regular URL. At the very least it would great if this was noted in the docs somehere - that you have to use a URL scheme link for this to work correctly.

CaseyApptentive commented 3 years ago

Hi @cgs. Thanks for reaching out, and apologies for any confusion.

You are correct. Apptentive Notes support "traditional" deeplinks (for lack of a better word), but not universal deeplinks. This means that, once an Apptentive Note launches, you absolutely can take customers to a different page within the app -- but you'd need to use one of those traditional deeplinks, which would look something like myapp://path/to/content.

Sorry that we'd don't support universal deeplinks today. I'm happy to share the feedback with my Product team.

Will you be able to use a traditional deeplink to accomplish your goal with this Note? Let me know how I can help.

Also, I'll look into adding a page specifically about deeplinking to our Learn center. Great suggestion.

CaseyApptentive commented 3 years ago

I've updated our docs to help with this. Sorry for any confusion!

https://learn.apptentive.com/knowledge-base/apptentive-notes/#troubleshooting