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

Facebook plugin + branch on ios does not work #72

Closed
tkuben opened this issue Mar 15, 2016 · 13 comments
Closed

Facebook plugin + branch on ios does not work #72

tkuben opened this issue Mar 15, 2016 · 13 comments

Comments

@tkuben
Copy link

tkuben commented Mar 15, 2016

Hi,

I reverted all my code am now trying to get just Facebook and branch plugin to work side by side on my app. Both functionality are crucial for my app. Unfortunately when branch is installed, on ios when I click on the facebook login, I am prompted by facebook to authorize the app but when facebook returns to the app, branch seems to be intercepting the call and I am not receiving any of the response back from the facebook oauth call. Works fine on the android.

Facebook Plugin: https://github.com/Wizcorp/phonegap-facebook-plugin

Debug Logs After FB Login with some sensitive data masked:

2016-03-15 14:31:55.761 <appName>[780:284539] [BNCServerInterface.m:183] body = {
    "branch_key" = "<myLiveKey>";
    "device_fingerprint_id" = <deviceId>;
    "identity_id" = <identityId>;
    retryNumber = 0;
    sdk = "ios0.11.17";
    "session_id" = <sessionId>;
}
2016-03-15 14:31:56.302 <appName>[780:284620] [BNCServerInterface.m:225] returned = Status: 200; Data: {
}
2016-03-15 14:31:56.610 <appName>[780:284539] encoded dictionary : {"external_intent_uri":"fb1050047481724149://authorize#e2e=%7B%22init%22%3A<fbID>%7D&granted_scopes=user_work_history%2Cuser_friends%2Cemail%2Ccontact_email%2Cpublic_profile&signed_request=<signedRequestData>","ios_bundle_id":"<appBundleId>","app_version":"1.0.0","device_fingerprint_id":"<deviceId>","update":1,"os":"iOS","identity_id":"<identityId>","sdk":"ios0.11.17","debug":1,"retryNumber":0,"branch_key":"<myLiveKey>","is_referrable":0,"os_version":"9.2.1","ad_tracking_enabled":1,"uri_scheme":"<appName>"}
2016-03-15 14:31:56.612 <appName>[780:284539] [BNCServerInterface.m:182] using url = https://api.branch.io/v1/open
2016-03-15 14:31:56.613 <appName>[780:284539] [BNCServerInterface.m:183] body = {
    "ad_tracking_enabled" = 1;
    "app_version" = "1.0.0";
    "branch_key" = "<myLiveKey>";
    debug = 1;
    "device_fingerprint_id" = <deviceId>;
    "external_intent_uri" = "fb1050047481724149://authorize#e2e=%7B%22init%22%3A<fbID>%7D&granted_scopes=user_work_history%2Cuser_friends%2Cemail%2Ccontact_email%2Cpublic_profile&signed_request=<signedRequestData>";
    "identity_id" = <identityId>;
    "ios_bundle_id" = "<appBundleId>";
    "is_referrable" = 0;
    os = iOS;
    "os_version" = "9.2.1";
    retryNumber = 0;
    sdk = "ios0.11.17";
    update = 1;
    "uri_scheme" = <appName>;
}
2016-03-15 14:31:56.652 <appName>[780:284539] start setDebug
2016-03-15 14:31:56.652 <appName>[780:284539] start initSession
2016-03-15 14:31:56.652 <appName>[780:284539] start getInstance
2016-03-15 14:31:57.184 <appName>[780:284620] [BNCServerInterface.m:225] returned = Status: 200; Data: {
    "browser_fingerprint_id" = "<null>";
    data = "{\"+is_first_session\":false,\"+clicked_branch_link\":false}";
    "device_fingerprint_id" = <deviceId>;
    "identity_id" = <identityId>;
    link = "https://bnc.lt/a/<myLiveKey>?%24identity_id=<identityId>";
    "session_id" = <sessionId2>;
}
2016-03-15 14:31:57.185 <appName>[780:284539] inside initSessionAndRegisterDeepLinkHandler block
2016-03-15 14:31:57.185 <appName>[780:284539] Success
2016-03-15 14:31:57.185 <appName>[780:284539] returning data to js interface..

Your help would be much appreciated.

Cheers,
TJ

@renesansz
Copy link
Contributor

@tkuben ,
We'll try to replicate this issue and we'll give you a feedback once we have fixed this one.

Thanks

@tkuben
Copy link
Author

tkuben commented Mar 16, 2016

Hi @renesansz

Thank you. Looking forward to hearing back from you soon. Currently this is
our critical blocker right now. If we can get across this hurdle too then
we should be good. Let me know if you require any further details.

Cheers,
TJ

On Wed, Mar 16, 2016 at 4:04 AM, Renemari Padillo notifications@github.com
wrote:

@tkuben https://github.com/tkuben ,
We'll try to replicate this issue and we'll give you a feedback once we
have fixed this one.

Thanks


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#72 (comment)

@renesansz
Copy link
Contributor

@tkuben ,
Hello, can you provide me a copy of your app so that I could check it directly from your side?

Thanks

@tkuben
Copy link
Author

tkuben commented Mar 17, 2016

@renesansz Sure. What email should I send it to?

Cheers,
TJ

@renesansz
Copy link
Contributor

Just send it to me rene@ingenuity.ph.

Thanks!

@tkuben
Copy link
Author

tkuben commented Mar 17, 2016

Hi @renesansz I just emailed you a base bone app with just fb login & branch within my codebase. Please have a look and let me know if I can be of any assistance.

Cheers,
TJ

@renesansz
Copy link
Contributor

Hello @tkuben ,
Cool! we'll look in to the app and see what's causing the conflict with the oAuth & branch.
We'll let you know if we need assistance.

Thanks

@renesansz
Copy link
Contributor

@tkuben ,
Let us know if the submitted PR already resolves your issue.

Thanks

@tkuben
Copy link
Author

tkuben commented Mar 22, 2016

Hi @renesansz

Yes the latest PR solves the FB + Branch issue.

Thank you for the fast turn around.
Cheers,
TJ

@tkuben tkuben closed this as completed Mar 22, 2016
@sandeep14
Copy link

What is Latest PR.Please let me know I am facing Same issue

@aaustin
Copy link
Contributor

aaustin commented Sep 26, 2016

This was merged in an older version of the SDK. Can you make sure you're using the latest @sandeep14? The current version on NPM is 2.2.3 https://www.npmjs.com/package/branch-cordova-sdk

@YaroslavG
Copy link

YaroslavG commented Aug 29, 2018

hello guys,
I have the same problem now in the latest version plugin

@YaroslavG
Copy link

[branch.io] BNCServerInterface.m(758) Debug: URL: https://api.branch.io/v1/open.
2018-08-29 17:33:35.674154+0300 2Meet[20183:9654928] [branch.io] BNCServerInterface.m(762) Debug: Body: {
"ad_tracking_enabled" = 1;
"app_version" = "0.1.67";
"apple_ad_attribution_checked" = 0;
"branch_key" = "<key_live>";
brand = Apple;
cd = {
mv = "-1";
pn = "<bundle_ID>";
};
country = UA;
debug = 1;
"device_fingerprint_id" = <device_fingerprint_id>;
"external_intent_uri" = "^fb\d+:";
"facebook_app_link_checked" = 0;
"first_install_time" = 1535356830958;
"hardware_id" = "C4BAF0D5-D985-4AF8-B621-61E3ED4827C5";
"hardware_id_type" = random;
"identity_id" = 563330891265323284;
instrumentation = {
"/v1/close-brtt" = 394;
};
"ios_bundle_id" = "com.App.myApp";
"ios_vendor_id" = "08FA843B-328B-4AFC-9DF5-D7D9602F6683";
"is_hardware_id_real" = 0;
language = ru;
"lastest_update_time" = 1535553159000;
"latest_install_time" = 1535550988706;
"local_ip" = "10.201.26.346";
model = "iPhone8,4";
os = iOS;
"os_version" = "11.3";
"previous_update_time" = 1535553159000;
retryNumber = 0;
"screen_height" = 1136;
"screen_width" = 640;
sdk = "ios0.24.2";
update = 1;
"uri_scheme" = "com.App.myApp";
"user_agent" = "Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E216 (4388349648)";
}
JSON: {"os_version":"11.3","ios_bundle_id":"com.App.myApp","debug":true,"country":"UA","is_hardware_id_real":false,"instrumentation":{"/v1/close-brtt":"394"},"sdk":"ios0.24.2","ad_tracking_enabled":true,"device_fingerprint_id":"564352474843369351","uri_scheme":"com.App.myApp","retryNumber":0,"previous_update_time":1535553159000,"facebook_app_link_checked":false,"external_intent_uri":"^fb\d+:","local_ip":"10.202.11.346","brand":"Apple","lastest_update_time":1535553159000,"update":1,"cd":{"pn":"com.App.myApp","mv":"-1"},"screen_height":1136,"apple_ad_attribution_checked":false,"model":"iPhone8,4","branch_key":"<key_live>","user_agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E216 (4388349648)","first_install_time":1535356830958,"hardware_id":"C4BAF0D2-D974-4AF8-B621-61E5ED4827C6","os":"iOS","identity_id":"563332891265313284","hardware_id_type":"random","latest_install_time":1535550988706,"screen_width":640,"language":"ru","ios_vendor_id":"08FA843B-428B-4AFC-9DF5-D7D9602F6683","app_version":"0.1.67"}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants