Naman Kedia • over 2 years ago
SCSDKSnapSticker Position and Rotation Changes Not Working
Hey! I'm attempting to create a SnapSticker and setting initial posX, posY, and rotation on it. However, whenever I set the posX and posY, snapAPI?.startSending does not redirect to the Snapchat app. Setting rotation works but it only rotates the sticker after the user takes a Snap as opposed to when the sticker first shows up on the app. Has anyone run into this or know why it's happening? Thank you so much!
Comments are closed.
5 comments
Seema Hari • over 2 years ago
Hey Naman
1. Can you elaborate on "not redircecting" to the Snapchat app? Does the share not open at all? How were you able to test it? This usually happens when `snapchat` is not included in LSApplicationQueriesSchemes in your info.plist
Can you double check this:
LSApplicationQueriesSchemes (string-array): This should contain snapchat, bitmoji-sdk, and itms-apps.
2. For the sticker only rotation not showing up is a bug, can you share with us a screenrecording and any other relevant details?
Naman Kedia • over 2 years ago
Hey Seema! Yes, the share doesn't open at all when I set posX or posY on the sticker. Without that, the share opens perfectly fine. When I set the rotation, the share opens but the rotation doesn't apply until after I take a snap. I was able to test it by running the app on my phone.
I can verify that LSApplicationQueriesSchemes contains snapchat.
Naman Kedia • over 2 years ago
Here is a screen recording which shows the instance in which I set rotation but not position. The share opens but the rotation only applies after I take the snap.
https://youtu.be/3larnjfXv4o
Seema Hari • over 2 years ago
Hey Naman
We are able to reproduce the rotation issue but not the posX and posY issue. What is the value you are setting for those variables? Can you send us a bit of your code?
Naman Kedia • over 2 years ago
Hi Seema,
I tried it now and it seems like the posX and posY works. Not sure what the issue was earlier. Thanks so much for your help!