box-ios-sdk icon indicating copy to clipboard operation
box-ios-sdk copied to clipboard

Login page not open on first launch

Open suniljakhar opened this issue 7 years ago • 6 comments

There seems to be a problem with this app

Error: Invalid client

Show Error Details responce_type=code redirectUri= boxsdk-(null)://boxsdkoauth2redirect state=z0wu.......djr8= cle=ient_id=(null)

comes when launch app first time ,after killing app it works fine. My code is in swift and setting client id secret as documented here.

suniljakhar avatar Sep 06 '18 07:09 suniljakhar

Hi suniljakhar thanks for letting us know, are you setting the client ID and secret prior to calling the authentication function?

RLEE0731 avatar Sep 07 '18 23:09 RLEE0731

Hi RLEE0731 , Yes we setting the proper client ID and secret prior to calling the authentication function. As i previously mentioned that first time it is not working but after quit and launch things are working as expected.

suniljakhar avatar Sep 12 '18 06:09 suniljakhar

Does the same behavior happen when you try running the sample app? Make sure to set the client ID and secret under [application:didFinishLaunchingWithOptions:]

RLEE0731 avatar Sep 12 '18 23:09 RLEE0731

I am getting this error when trying to run the sample app on device "Provisioning profile "iOS Team Provisioning Profile: *" doesn't support the App Groups capability.". Also tried on simulator it is working as expected.

suniljakhar avatar Sep 13 '18 09:09 suniljakhar

Cool, so it seems somewhere in the code is accessing BOXContentClient before the client ID and secret are set. I would say try adding breakpoints wherever BOXContentClient is being called, and ensure [BOXContentClient setClientID:clientSecret:] is first to be called when you run your app.

RLEE0731 avatar Sep 14 '18 21:09 RLEE0731

@suniljakhar Are you still running into this issue?

PreciselyAlyss avatar May 21 '19 15:05 PreciselyAlyss

This issue has been automatically marked as stale because it has not been updated in the last 30 days. It will be closed if no further activity occurs within the next 7 days. Feel free to reach out or mention Box SDK team member for further help and resources if they are needed.

stale[bot] avatar Dec 19 '22 19:12 stale[bot]

This issue has been automatically closed due to maximum period of being stale. Thank you for your contribution to Box iOS SDK and feel free to open another PR/issue at any time.

stale[bot] avatar Dec 28 '22 08:12 stale[bot]