-
Notifications
You must be signed in to change notification settings - Fork 22
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
EXC_BAD_ACCESS Upon Logging in #7
Comments
Hi @joshim5, Sachin |
Hi Sachin, Thanks for the quick response. What redirect_uri are you using? Best, |
@joshim5 What should be used for the redirect_uri? |
@joshim5 @hpogosyan The redirect_uri according to the API documentation for a mobile app is supposed to go to your server that would have a special redirect back to your app. Once you successfully login you should receive a callback to these delegate methods
This means that you can set any redirect URI you want in the dev portal as long as it redirects back to your app. So to answer your question, you just need to make sure that the redirect URI you're setting in UberKit is the same as the one you specify on the Uber developer portal and that your redirect URI calls your app's url type to re-enter. Please let me know if you have any other questions regarding this. -Sachin |
@sachinkesiraju I am using the UberKitDemo in your repo. What's the quickest way to setup a redirect_uri without actually hosting a server. Is there a service that does this? |
@hpogosyan To set up your own server, you could simply add an endpoint to one you already own or you could try using a service like Heroku or Paperplane. |
@sachinkesiraju I got around that issue, thank you for your help. Now I am experiencing a crash after a successful build: http://hastebin.com/iqaheqoqod.md I am on: |
@hpogosyan This a range exception which means that somewhere in your code, you are trying to access an element of an array that does not exist at the specified index.
Here, you're probably getting this error because you're trying to access index 0 of products when products may be empty. Try logging products to confirm this. |
I'm also experiencing this issue, although intermittent. EXC_BAD_ACCESS when calling |
Same for me. There is a random crash. It happens inside of web view: #1 0x30a671db in -[UIWebView webView:decidePolicyForNavigationAction:request:frame:decisionListener:] You have to remove the delegate before leaving the view:
more details here: http://stackoverflow.com/questions/1264727/uiwebview-exc-bad-access-crash |
Hey guys, |
@dserkin that fix worked well for me. Thanks for your help. |
Hello,
In UberKitDemo, I get an EXC_BAD_ACCESS after login:sender is called. This is after inserting the correct clientId, clientSecret, etc.
Perhaps this is an issue relating to the new API updates -- any thoughts?
It is clear to me that the issue occurs in [uberKit startLogin].
Best,
Joshua
The text was updated successfully, but these errors were encountered: