shpongle2634 / react-native-kakao-links

React-Native Kakao Link Module
MIT License
28 stars 21 forks source link

Wrong Parameters #6

Closed thaoth58 closed 5 years ago

thaoth58 commented 5 years ago

Hello,

I have this problem, can you have a look?

      try {
        const linkObject = {
          webURL: link
        };
        const options = {
          objectType: 'text',
          text: 'MyScanShare',
          link: linkObject,
        };

        const response = await RNKakaoLink.link(options);
        console.log(response);
blob:http://localhos…1c4ea311dd54:143904 Error: Wrong Parameters
    at createErrorFromErrorData (blob:http://localhos…0-1c4ea311dd54:2118)
    at blob:http://localhos…0-1c4ea311dd54:2070
    at MessageQueue.__invokeCallback (blob:http://localhos…0-1c4ea311dd54:2637)
    at blob:http://localhos…0-1c4ea311dd54:2368
    at MessageQueue.__guard (blob:http://localhos…0-1c4ea311dd54:2541)
    at MessageQueue.invokeCallbackAndReturnFlushedQueue (blob:http://localhos…0-1c4ea311dd54:2367)
    at debuggerWorker.js:80
shpongle2634 commented 5 years ago

Hello,

I tested Text linking API but it works well.

Check your javascript webURL: link and Tell me more info. : )

thaoth58 commented 5 years ago

This is my whole code:

      try {
        const linkObject = {
          webURL: 'https://dev.myscanshare.com/register?sharedObjectID=5ca5d3d30f9d8b4005e0755a&sharedObjectType=study'
        };
        const options = {
          objectType: 'text',
          text: 'MyScanShare',
          link: linkObject,
        };

        const response = await RNKakaoLink.link(options);
        console.log(response);
      } catch(e) {
        console.log(e)
      }
thaoth58 commented 5 years ago

I linked manually. Because I cannot build when I try to use $ react-native link react-native-kakao-links.

thaoth58 commented 5 years ago

I found the issue:

I don't have kakao<id> in my Info.plist. :D

hansol775 commented 5 years ago

I found the issue:

I don't have kakao<id> in my Info.plist. :D

The same problem occurs. How did you do it?

thaoth58 commented 5 years ago

I found the issue: I don't have kakao<id> in my Info.plist. :D

The same problem occurs. How did you do it?

Not sure if your issue is as same as me or not. I added kakao in LSApplicationQueriesSchemes from Info.plist