Hi there, I'm Phi Thu! 👋
Hi, I'm Nguyen Phi Thu, a fullstack developer from Ho Chi Minh city, Vietnam
Languages and Tools:
A React Native Module for Zalo SDK
Home Page: https://www.npmjs.com/package/rn-zalo
Hi, I'm Nguyen Phi Thu, a fullstack developer from Ho Chi Minh city, Vietnam
Languages and Tools:
I got the error when archiving the project, got the same error on 3 projects:
Minimal reproduction steps:
cd demo/ios
, install node module and podld: 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
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
login lần đầu tiên trên webview không nhận được phản hồi, cũng không có lỗi hay gì cả. Không check được nguyên nhân, không biết có bác nào gặp qua case như này chưa. Và e xin hướng resolve luôn ạ.
Gọi hàm login zalo -> Máy đã có sẵn ứng dụng zalo -> gọi sang ứng dụng zalo. Nhưng k quay trở lại app và trả lại token
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": ""}}
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?
When i was login, i had issue: "The operation couldn’t be completed. (Zalo Oauth error -1012.)"
Please help me!!!
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
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
RNZalo.login()
from JS ==> Workedyarn 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
RNZalo.login()
from JS ==> CrashedA declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.