How to redirect the user to a mobile app or a website on click of a hyperlink sent in an email? Should it need to be handled on server-side using PHP?

前端 未结 5 1440
臣服心动
臣服心动 2020-12-31 19:04

I\'ve a website which is already developed using PHPFox and it\'s working fine. Now, iOS development team has created a mobile app in iOS for the same funct

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 19:40

    You do not have to do anything. Ask your iOS developers to read about URL Schemes which seems to have been explained in the link you mentioned based on which the iOS team has contacted you. That link shows how you can make your app capable of being launched from another place(app-in your case the mail app). The reason why the email takes the user to the website and not the app is because the hyperlink mentions your web link and says nothing about the app.

    Basically similar to how your website has a link of the form sayhttp://youwebsite.com/, the app also has a link of the for yourapp:// which works on the device once the iOS app has integrated URL scheme. So you need to mention this URL in the email hyperlink.

    Refer to this answer which might help you to setup the mail link.

    So to sum up,

    1. You need to do nothing
    2. iOS team needs to integrate URL Scheme
    3. The place from where the email is generated make sure the link is updated appropriately

    P.S.: Use the link above for figuring out how the link is to work, haven't explained it here for 2 reasons,

    a) Its beyond the scope of the questions, you needed to know if you need to do any change as PHP developer, So Answer is NO.

    b) It is already addressed in this answer

提交回复
热议问题