Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-20235] Android: requestStoragePermission is needed for various… #7640

Closed
wants to merge 4 commits into from
Closed

Conversation

gimdongwoo
Copy link
Contributor

[TIMOB-20235] Android: requestStoragePermission is needed for various use cases

https://jira.appcelerator.org/browse/TIMOB-20235

@gimdongwoo
Copy link
Contributor Author

https://cla.appcelerator.com/sign
504 Gateway Time-out...

@gimdongwoo
Copy link
Contributor Author

[ERROR] Emulator failed to start in a timely manner
The current timeout is set to 120000 ms
You can increase this timeout by running: titanium config android.emulatorStartTimeout
Failed to build android project
npm ERR! Test failed. See above for more details.

@ashcoding
Copy link
Contributor

For the cla, please try again at another time to sign.

For the travis build, the emulator in travis timeout sometimes. For this scenario, the travis build just needs to be restarted.

@gimdongwoo
Copy link
Contributor Author

@ashcoding Thank's your advise!!

👍

@yomybaby
Copy link
Contributor

:+1

@hansemannn
Copy link
Collaborator

Please also update the docs from "5.1.0" to "6.0.0" since 5.1.0 is already released at the feature would most likely go into 6.0.0 then.

@gimdongwoo
Copy link
Contributor Author

@hansemannn Oh, my mistake. Thank you very much.

@gimdongwoo
Copy link
Contributor Author

Appcelerator-CLA dosen't work...
504 Gateway Time-out...

@ashcoding
Copy link
Contributor

@gimdongwoo Could you try another browser and see if it works?

@gimdongwoo
Copy link
Contributor Author

  • Case 1. Chrome 47.0.2526.111 (OSX 10.10.5)
    When clicked 'Sign With Github', only refresh scrren but nothing change.
  • Case 2. Safari 9.0.1 (OSX 10.10.5)
    When clicked 'Sign With Github', github authorizing success, but (https://cla.appcelerator.com/sign) 504 Gateway Timeout.
  • Case 3. Internet Explorer 11 (Windows 10)
    When clicked 'Sign With Github', github authorizing success, but (https://cla.appcelerator.com/sign) 504 Gateway Timeout.
  • Case 4. Chrome 47.0.2526.107 (iOS 9.2.1)
    When clicked 'Sign With Github', github authorizing success, but (https://cla.appcelerator.com/sign) 504 Gateway Timeout.

After, remove authorized application 'Appcelerator CLA' in github (https://github.com/settings/applications) and logout github.
Retry case 1,2,3,4. After github login & authorizing success, but same result.

Maybe, after authorizing github session handling process in (https://cla.appcelerator.com/sign) has error.

@ashcoding Thank you!

@hansemannn
Copy link
Collaborator

@gimdongwoo We are working to fix the issue, but sometimes it just works after a few days again. If it still not works today, please be patient for a few more days :-).

@benbahrenburg
Copy link
Contributor

@gimdongwoo @hansemannn Does it make sense for this make more sense as part of Ti.FileSystem ?

So @gimdongwoo any chance you could add the check similar to how you did in your awesome module https://github.com/gimdongwoo/Ti-Android-RequestStoragePermission/blob/master/android/src/com/boxoutthinkers/reqstorageperm/TiAndroidRequeststoragepermissionModule.java#L50 ? Just thinking this would allow for both the check and grant.

@ashcoding
Copy link
Contributor

@benbahrenburg I agree with you. It makes more sense to be part of Ti.Filesystem

@gimdongwoo
Copy link
Contributor Author

@benbahrenburg Thank's your comment 👍
This is a slight variation already existed "requestCameraPermissions" in "MediaModule.java".
And "hasStoragePermission" are already existed in.
If this code is transferred to "Ti.FileSystem", it duplicated or supposed to be a cross-reference, I don't know whether it was the right thing.

@gimdongwoo
Copy link
Contributor Author

Oh. yeah~

Almostly, I every day and try again.
Today finally, CLA is fixed.

@hansemannn It takes 27 days long, but thank you!

@gimdongwoo
Copy link
Contributor Author

CLA is only work on Safari, but didn't work on Chrome.
I have been also requested this appcelerator support team.

Everybody thank you, have a nice day!!

@ashcoding
Copy link
Contributor

👍 Glad that CLA finally works for you. With regards to this PR, we have a Jira ticket https://jira.appcelerator.org/browse/TIMOB-20251 that has handled this. We needed to fix a few more things beside the permission issue as mentioned in that Jira.

Really appreciated your interest and help in creating a PR and contributing to the discussion of the permissions!

@ashcoding
Copy link
Contributor

Thank you!

@ashcoding ashcoding closed this Feb 23, 2016
@gimdongwoo gimdongwoo deleted the fork_PR branch February 23, 2016 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants