Dropbox authentication within application

人盡茶涼 提交于 2019-12-10 15:36:21

问题


Is there any way to authenticate the user within the app for Dropbox in iPhone ?

I using Dropbox IOS instruction for integrating Dropbox.

But my application got rejected by apple as "the app exits to Safari in order to authenticate the user's Dropbox account".

Please give me some solution so I can authenticate Dropbox within application.


回答1:


yes you can authenticate dropbox within the application.The new API of dropbox authenticates within the app.

Below method is when you want to open dropbox.so just write that method and assign that action to button, and rest of the delegate methos you can find on https://www.dropbox.com/developers/start/authentication#ios link

  -(IBAction)goDropBox
  {

  //DBSession* dbSession =    [[DBSession sharedSession] unlinkAll];
 // if (![[DBSession sharedSession] isLinked])
  // {
       [[DBSession sharedSession] linkFromController:self];
  // }
  }

Happy Coding!!!!!!



来源:https://stackoverflow.com/questions/14134131/dropbox-authentication-within-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!