Giter VIP home page Giter VIP logo

rn-zalo's Introduction

Hi there, I'm Phi Thu! 👋

Hi, I'm Nguyen Phi Thu, a fullstack developer from Ho Chi Minh city, Vietnam

Languages and Tools:

Anurag's github stats

rn-zalo's People

Contributors

doko-demo-doa avatar phithu avatar phithuxyz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rn-zalo's Issues

Archive Error: bitcode bundle could not be generated

I got the error when archiving the project, got the same error on 3 projects:

Minimal reproduction steps:

  • clone this https://github.com/phithu/rn-zalo
  • cd demo/ios, install node module and pod
  • Product > Run ==> App can be installed and run successfully
  • Product > Archive ==> got the error:
ld: bitcode bundle could not be generated because '/Users/luatnd/Downloads/rn-zalo-master/demo/ios/Pods/ZaloSDK/ZaloSDK/Frameworks/ZaloSDK.framework/ZaloSDK(Pods-ZaloSDK-dummy.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build file '/Users/luatnd/Downloads/rn-zalo-master/demo/ios/Pods/ZaloSDK/ZaloSDK/Frameworks/ZaloSDK.framework/ZaloSDK' for architecture arm64

Library for android

Error of me: Error: Không thể đăng nhập Zalo and when i click login button Zalo app show but screen show grant access and don't login zalo?.
Pls fix for me or give me suggestions to fix this

Lỗi không getProfile được

sau khi em chạy RNZalo.login(); thì nó log thế này. mong anh giúp đỡ

{"oauthCode": "8ZupBflXbX5s47Xi-u6sO3j8O1AykASPSK4M5hRbunmt3LOHx_-pRMKPRaYQuRq_7n1uCzVStYmsHHGXjgUZB7v2V5dtqfjwFX9n7elRjX54D0aiZQx08XHtH2gqauXuIbGZ8kl_w5Hp3Z1QgkVwDYCwVZ2wjS0i4nzv4yRGsXyOAGLx_8oNA6njNqB_e8D7PZTFBiVSn59TLm5GfAV541etS66klwufO1PoNzZyyqCqU2OEXlxc8HZGyJgE5WS4OwhIU8G2BaKSYUikrmWICKZwYqIcRqL9EE2Q9v1XIm4oxUKPtsav0_e6Bn71dSyJ", "user": {"error": -1013, "error_description": "Invalid Parameter", "error_name": "Invalid Parameter", "error_reason": ""}}

Login faild

when i console.log response data:

{"user": {"error": -1013, "error_description": "The parameter pckg_name and sign_key are required.", "error_name": "Invalid Parameter", "error_reason": ""}}

how to fix it?

Can't login with iOS

When i was login, i had issue: "The operation couldn’t be completed. (Zalo Oauth error -1012.)"
Please help me!!!

[iOS] Calling RNZalo.login() cause crashed on [email protected]

Hi,
I installed rn-zalo and used fully auto-linking on [email protected]
iOS build process was ok
=> Then navigated to login screen, pressed a button to callRNZalo.login() ==> app crahed, this is the debug content:

[ZOZaloAuthenticator googleClientIdInPlist]: unrecognized selector sent to instance 0x280f234e0
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ZOZaloAuthenticator googleClientIdInPlist]: unrecognized selector sent to instance 0x280f234e0'

Do you have another workaround

Update: Reproduction steps:

  1. Init new rn project, the react-native version should be 0.61.5:
react-native init testZalo
yarn add rn-zalo
pod install --project-directory=ios
react-native run-ios

Some more configuration

5. Add URL Type Main target setting -> info -> URL types -> click +
identifier = “zalo”, URL Schemes = “zalo-<YOUR_APP_ID>”

6. Open AppDelegate.m
...
#import <ZaloSDK/ZaloSDK.h>
- (BOOL)application:(UIApplication *)application
 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    ...
    [[ZaloSDK sharedInstance] initializeWithAppId:@"<YOUR_APP_ID>"];
    return YES;
}
...  

- (BOOL)application:(UIApplication *)application openURL:(nonnull NSURL *)url options:(nonnull NSDictionary<NSString *,id> *)options {
  return [[ZDKApplicationDelegate sharedInstance] application:application openURL:url options:options];
}

7. Clear and Run your project

Or you can use /rn-zalo/demo project

  1. Run RNZalo.login() from JS ==> Worked
  2. Install react-navigation:
yarn add react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
pod install --project-directory=ios
react-native run-ios
  1. Run RNZalo.login() from JS ==> Crashed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.