madsleejensen / react-native-mobilepay

React-Native Bindings for Danske Bank Mobilepay AppSwitch iOS + Android
8 stars 13 forks source link

multi instance for IOS in AppDelegate.m #2

Closed Mactub07 closed 7 years ago

Mactub07 commented 7 years ago

I have small trouble with adding setup in AppDelegate.m because I have Facebook

//Facebook Auth ----------------------------------------------------------

can you help me how compare my Facebook setup and mobilePay

madsleejensen commented 7 years ago

Hi, the library is build with this in mind, if you look at the source code you pasted, you see its wrapped around a "if(...)" condition, it only returns true if it was handled by mobilepay. Simply replace the "return false" with your facebook code

return [[FBSDKApplicationDelegate sharedInstance] application:application openURL:url sourceApplication:sourceApplication annotation:annotation];