# Meeting SDK android implementation

**URL:** <https://devforum.zoom.us/t/meeting-sdk-android-implementation/113686>\
**Category:** Android\
**Created:** [July 15, 2024, 12:59pm UTC](https://devforum.zoom.us/t/meeting-sdk-android-implementation/113686 "2024-07-15T12:59:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shubh/32/49726_2.png) [@shubh](https://devforum.zoom.us/u/shubh)\
**Post date:** [July 15, 2024, 12:59pm UTC](https://devforum.zoom.us/t/meeting-sdk-android-implementation/113686/1 "2024-07-15T12:59:35Z")

</div>

Hi Team,  
I have integrated zoom meeting sdk in one of my android app couple years ago .  
Now doing it for another app, but I can see sdk has changed alot since then.  
Tried to install it but getting ZOOM\_ERROR\_AUTHRET\_TOKENWRONG OR ZOOM\_ERROR\_INVALID\_ARGUMENTS.  
I am not sure where i am going wrong.  
I am doing simple inegration where user can simply join zoom meeting with URL with guest login in android app.  
Couple of doubts i have .

- for my requirement of simply joining the zoom meeting do i need to select “Build app” or “Build legacy app” on zoom market place
- What will be the Redirect URL for OAuth and Add Allow List , as these fields are mandatory.
- I am producing jwt token as below is there anything missing in it?  
sample JWT:- “eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhcHBLZXkiOiJOY0NmZUdzTFR2R1UwQjdhaGRXdnhRIiwiaWF0IjoxNzIxMDQ3NzA4LCJleHAiOjE3MjEwNTQ5MDgsInRva2VuRXhwIjoxNzIxMDU0OTA4fQ.kr90ftuy55C0Y2SospBZvZoy7Ev6WCQgli\_0J2\_9Jp8”

Kindly help me out @chunsiong.zoom and team.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [July 16, 2024, 4:04am UTC](https://devforum.zoom.us/t/meeting-sdk-android-implementation/113686/2 "2024-07-16T04:04:21Z")

</div>

@shubh what marketplace application are you using right now?

You will either need a Legacy Meeeting SDK App, or a General App with the Meeting SDK toggle button turned on.

---

<div class="post-metadata">

**Author:** ![shubh](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shubh/32/49726_2.png) [@shubh](https://devforum.zoom.us/u/shubh)\
**Post date:** [July 16, 2024, 7:05am UTC](https://devforum.zoom.us/t/meeting-sdk-android-implementation/113686/3 "2024-07-16T07:05:17Z")

</div>

![Screenshot 1946-04-25 at 12.31.06 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/0/b052448bee0f10361033be5048fe1aae1a2fe4f6.jpeg)  
 ![Screenshot 1946-04-25 at 12.26.20 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/9/59f73d84e37fe4341bbe6c22b0e37c24045ac48c.jpeg)  
Hi @chunsiong.zoom ,  
Thanks for the reply,  
I have tried both Creating Legacy as well as General App with Meeting Sdk.  
But no luck.  
Attached ss for the reference.  
 ![Screenshot 1946-04-25 at 12.36.31 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/b/9b697eedb5bc72a4face8db7e586121d2e97010f.jpeg)

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [July 16, 2024, 1:48pm UTC](https://devforum.zoom.us/t/meeting-sdk-android-implementation/113686/4 "2024-07-16T13:48:53Z")

</div>

@shubh how are you generating the token?

---

<div class="post-metadata">

**Author:** ![shubham.phad.infinx](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shubham.phad.infinx/32/56599_2.png) [@shubham.phad.infinx](https://devforum.zoom.us/u/shubham.phad.infinx)\
**Post date:** [August 8, 2024, 10:19am UTC](https://devforum.zoom.us/t/meeting-sdk-android-implementation/113686/5 "2024-08-08T10:19:55Z")

</div>

@chunsiong.zoom Apologies , for late reply due to some account migration thing.  
Found the issue , suspect was JWT token , I was creating JWT token app side(for testing purpose) with following code.  
Below logic seem right, but somehow it didnt worked ,  
I have switched it to backend and it worked.  
Thanks for help 🙂

````auto
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.JwtBuilder;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import io.jsonwebtoken.impl.TextCodec;

import java.security.Key;
import java.time.Instant;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import javax.crypto.spec.SecretKeySpec;
import javax.xml.bind.DatatypeConverter;
import org.json.JSONObject;

public class Token {

public static void main(String[] args) {

String key = "Uses_SDK_Client_ID_Here";
String secret ="Uses_SDK_Client_Secret_Here";
int meetingNumber = 123456789;
long iat = (System.currentTimeMillis()/1000);
long exp = iat + 60*60*2;

Map<String, Object> header1 = new HashMap<>();
header1.put("alg", "HS256");
header1.put("typ", "JWT");

JSONObject payload = new JSONObject();
// payload.put("sdkKey", key);
payload.put("appKey", key);
// payload.put("mn", meetingNumber);
payload.put("iat", iat);
payload.put("exp", exp);
payload.put("tokenExp", exp);

String sPayload = payload.toString();

String sdkJWT = Jwts.builder()
.setHeader(header1)
.setPayload(sPayload)
.signWith(SignatureAlgorithm.HS256, secret)
.compact();

System.out.println("SDK JWT: " + sdkJWT);
}

}```
````

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [August 12, 2024, 1:54am UTC](https://devforum.zoom.us/t/meeting-sdk-android-implementation/113686/6 "2024-08-12T01:54:39Z")

</div>

Closed on August 12, 2024, 1:54am UTC


