2012-08-09 7 views
1

가 궁금하다 내 지정 대상 URL 대상 URL을 설치 한 휴대 전화 앱으로 다시 리디렉션하고 앱의 특정 페이지로 이동시키고 싶습니다. 따라서 절차는리디렉션

Safari | QR 코드 스캔 -> 내 URL -> 내 전화 앱 열기 -> 앱에서 대상 페이지로드.

iOS 및 Android에서이 리디렉션을 구현할 수 있습니까? 이에 대한 정보를 많이 주시면 감사하겠습니다.

감사합니다.

답변

1

ios의 경우 info.plist에서 URL 체계를 정의 할 수 있습니다. 그런 다음 응용 프로그램 대리인 내에서 URL을 처리 할 수 ​​있습니다. 좋은 튜토리얼은 데이터 의도 필터

<data android:host="string" 
    android:mimeType="string" 
    android:path="string" 
    android:pathPattern="string" 
    android:pathPrefix="string" 
    android:port="string" 
    android:scheme="string" /> 

http://developer.android.com/guide/topics/manifest/data-element.html

로 설정하고 그 발사 의도에서 데이터 구성 요소로 도착 여기

http://mobiledevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html

안드로이드에 위치 내 앱

<intent-filter> 
<action android:name="android.intent.action.VIEW" /> 
<category android:name="android.intent.category.DEFAULT" /> 
<category android:name="android.intent.category.BROWSABLE" /> 
    <data android:scheme="http" android:host="myhost" android:pathPrefix="/details" /> 
</intent-filter> 

그러나, 안드로이드의 모든 브라우저가 실제로 다른 응용 프로그램이 다음 페이지로 간단히로드하기 전에 URL 체계를 받아들이는지 확인하기 위해 실제로 테스트하는지 확신하지 못합니다.

+0

감사합니다. 돼지 고기! 이것은 정말 도움이됩니다! – user560494