-
Notifications
You must be signed in to change notification settings - Fork 89
Bugfix/android kotlin #49
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
Conversation
…d Android, also update the contributorssss :P
329a854
to
7d18c20
Compare
@@ -56,8 +56,10 @@ class RNLine(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule | |||
|
|||
@ReactMethod | |||
fun login(args: ReadableMap, promise: Promise) { | |||
println(args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't you do it only in debug mode or something like that?
return [LineLogin application:app open:url options:options]; | ||
} | ||
|
||
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add these two to Swift section too.
@@ -92,6 +108,9 @@ Don't forget to add `application` function, as line's instructions indicate. | |||
<string name="line_channel_id" translatable="false">Your channel id here</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please change this line :
https://developers.line.me/en/docs/line-login/android/integrate-line-login/ in Line's Android integration guide to:
https://developers.line.biz/en/docs/android-sdk/integrate-line-login/
@@ -23,7 +23,7 @@ import com.linecorp.linesdk.LineProfile | |||
enum class LoginArguments(val key: String) { | |||
SCOPES("scopes"), | |||
ONLY_WEB_LOGIN("onlyWebLogin"), | |||
BOT_PROMPT("onlyWebLogin") | |||
BOT_PROMPT("botPrompt") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fix 👏
@@ -233,7 +232,7 @@ class RNLine(reactContext: ReactApplicationContext) : ReactContextBaseJavaModule | |||
) | |||
) | |||
|
|||
private fun parseVerifyAccessToken(verifyAccessToken: LineCredential): WritableMap = Arguments.makeNativeMap( | |||
private fun parseVerifyAccessToken( verifyAccessToken: LineCredential): WritableMap = Arguments.makeNativeMap( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private fun parseVerifyAccessToken( verifyAccessToken: LineCredential): WritableMap = Arguments.makeNativeMap( | |
private fun parseVerifyAccessToken(verifyAccessToken: LineCredential): WritableMap = Arguments.makeNativeMap( |
You left a whitespace there 😛
Bugfix; Android issue with onlyWebLogin
🔄 Type of change:
✏️ Description:
Solve issue in android with onlyWebLogin prop, also add some improvements and add support for email and lineIdToken