파일 확장자가있는 iOS 응용 프로그램에서 작업하는 중입니다. 예 : .vlin
그리고 iOS 기기가이 확장 프로그램을 인식하도록합니다. .vlin
파일을 클릭하면 내 Vlin
응용 프로그램에서 열립니다 지금까지 나는 아이폰 기본 메일 클라이언트 iOS safari가 지원해야하는 문서 유형을 등록하는 방법은 무엇입니까?
.vlin
에 따라 달성 할 수 있어요.
나는 코르도바를 사용하여 config.xml에
에서 구성 설정을 추가 어쨌든 그것은 아이폰 OS의 사파리 브라우저에서 작동하지 않는 경우입니다. iOS Safari에서 파일을 열려고하면 브라우저 자체에서 텍스트 파일로 열립니다. 내 Vlin
iOS 앱에서 열어 보겠습니다.
내의 Info.plist 및 config.xml의 코드는 다음과 같습니다
<platform name="ios">
<preference name="IosLaunchMode" value="singleTask" />
<config-file platform="ios" target="*-Info.plist" parent="UIFileSharingEnabled">
<true />
</config-file>
<config-file platform="ios" target="*-Info.plist" parent="CFBundleDocumentTypes">
<array>
<dict>
<key>CFBundleTypeName</key>
<string>com.example.vlin.vlin</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>com.example.vlin.vlin</string>
</array>
</dict>
</array>
</config-file>
<config-file platform="ios" target="*-Info.plist" parent="UTExportedTypeDeclarations">
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>Vlin document</string>
<key>UTTypeIdentifier</key>
<string>com.example.vlin.vlin</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<string>vlin</string>
</dict>
</dict>
</array>
</config-file>
어떤 도움이 많이 감사합니다, 미리 감사드립니다.
의 Info.plist
<key>UIFileSharingEnabled</key> <true/> <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>com.example.vlin.vlin</string> <key>CFBundleTypeRole</key> <string>Editor</string> <key>LSHandlerRank</key> <string>Owner</string> <key>LSItemContentTypes</key> <array> <string>com.example.vlin.vlin</string> </array> </dict> </array> <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.data</string> </array> <key>UTTypeDescription</key> <string>Vlin document</string> <key>UTTypeIdentifier</key> <string>com.example.vlin.vlin</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename-extension</key> <string>vlin</string> </dict> </dict> </array> </dict>
샘플 파일 형식 : invite.vlin
{
"invite”: {
"name": “Some College",
"identifier": “xxxxxxxxxxxxxxxxx”
},
“value”: “xxxxxxxxxxxxxx”
}
샘플 .vlin 파일을 제공 할 수 있습니까? – jcesarmobile
@jcesarmobile 샘플 파일 형식 인'invite.vlin'을 추가했습니다. – pradeep1991singh
나는 실제로 .vlin 파일을 업로드했는데, 브라우저가 어떻게 "보고"있는지 확인했다. – jcesarmobile