You see that it is adivsed to create your file with your app-specific mime type. Is it right way? I wonder because google drive somehow associates files with the application that created them for Open with functionality. Can this be exploited for the file picker?
相关问题
- Name program in the Open With… context menu
- Use two Facebook App ID in a single Android app
- iphone app id change bundle prefix
- Filepicker for Hololens: List available filepicker
- Change App ID of Apple Watch App
相关文章
- How to select files from google drive in android?
- Error Creating json project configuration file for
- Apple Developer - What is the 'Fonts' Capa
- How to add a File Picker plugin in Flutter?
- Merging existing iPhone and iPad app ids into a si
- Android File Picker [closed]
- Convert mime types in fileChooserParams to the rig
- Obtain Apple software id number before appstore su
FYI-- You mentioned your project ID being
alpine-dogfish-833.
If you login to the developer console, then click on your project (which takes you to the project "Overview" page), you will see 2 identifiers at the top:Project ID: alpine-dogfish-833
andProject Number: 1088706429537
. "Project Number" == "App ID" == "the numeric prefix on the Client ID"If the file has custom contents that only your app can understand, use the app specific mime type. Otherwise, use the standard mime type for whatever kind of file you are working with.
I have finally discovered that when your app (identified with CLIENT_ID) creates a file with mime-type
application/vnd.google-apps.drive-sdk
, the mime-type is expanded with.<AppID>
. The AppID is the first part of your CLIENT_ID. Basically, project ID looked likealpine-dogfish-833
in mine case. I have then generated Client_ID1088706429537-4oqhqr7o826ditbok23sll1rund1jim1.apps.googleusercontent.com
and 1088706429537 is the AppID that we are looking for because when my app creates a file, usingNote mime-type is
application/vnd.google-apps.drive-sdk
-- it does not contain any app ID. Querying the file reveals that the effective mime type of resulting file is actuallyapplication/vnd.google-apps.drive-sdk.1088706429537
. Google can even fix the mime type even if you misspelapplication/vnd.google-apps.drive-sdk
a bit.This answers my question because eliminates all the confusions. The major confusion is that your project has additional application id, that you get even before the CLIENT-ID but it has nothing to do with signing the files with app-specific mime-type. I did not find that in the referred q&a. Secondly, this answers my question because it basically says that mime-type contains APP_ID so that app id and mime-type is therefore the same thing and there is no difference/redundancy/conflict to choose between two.