Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Update from iOS Url Scheme to Universal Link
Started by apps30 Jul 24 2018 11:15 PM

5 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

apps30

[GLOBAL: userInfoPane.html]
apps30
  • Enthusiast

  • 56 posts
  • Corona SDK

I have the following configuration in my build.settings

settings = {
     iphone =
           plist = {
                  CFBundleURLTypes = {
                         {
                            CFBundleURLSchemes = {
                                  "myAppScheme"
                            }
                         }
                  }
           }
     }
}

If I type "myAppScheme://" in the url of the iOS mobile safari, it will now prompt me to confirm if I should open the app or not. If yes, it can open my app successfully.

 

I would like to see how to open the app without the prompt. And I found there is something called "Universal Link" which should have the same function but without the prompt. However, I can't find any related documentation in the Corona SDK on how to implement this. Can someone direct me to the right place or let me know how to do it?

 

Thanks!



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,968 posts
  • Corona Staff

Do you have a link to where you read about this "Universal Link"?

 

Rob



[TOPIC: post.html]
#3

apps30

[GLOBAL: userInfoPane.html]
apps30
  • Enthusiast

  • 56 posts
  • Corona SDK

Hi Rob,

 

Here are few related links I found:

https://stackoverflow.com/questions/44574520/directly-return-back-to-app-from-safari-without-prompting-the-user

https://blog.branch.io/how-to-setup-universal-links-to-deep-link-on-apple-ios/

https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html

 

Thanks!



[TOPIC: post.html]
#4

Studycat2

[GLOBAL: userInfoPane.html]
Studycat2
  • Enthusiast

  • 69 posts
  • Corona SDK

We have tried universal links and found incomplete behaviour from Corona SDK. Our use case it to deep link into our app, by launching it with arguments. 

 

To access the arguments: 

On a cold start, we include `launchArgs = ...` in main.lua.

On a warm start, we receive the arguments from the applicationResumed system event. 

 

On Android, both cold start and warm start work correctly. 

On iOS, warm start works correctly, but cold start does **not** pass the arguments in.

 

We've tried a native iOS project and it is possible to get the cold start arguments.

 

It looks like Corona need to grab the arguments on iOS and bundle them into launchArgs.

 

There's a sample project attached demonstrating this behaviour.

 

Thanks

Mat

 

Attached Files



[TOPIC: post.html]
#5

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,968 posts
  • Corona Staff

Please file a bug report on this using the Report a bug link at the top of the page.



[TOPIC: post.html]
#6

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,764 posts
  • Enterprise

Getting ready to submit a plugin to help with this


  • ojnab likes this


[topic_controls]
[/topic_controls]