hoxfon / react-native-twilio-programmable-voice

React Native wrapper for Twilio Programmable Voice SDK
MIT License
180 stars 153 forks source link

How to show App Icon in Callkit? What is "image_name_in_bundle" in configure callkit? #187

Closed salman-pixarsart closed 3 years ago

salman-pixarsart commented 3 years ago

I'm trying to add App Icon in Callkit. I get it there's a param in configureCallKit() method but its just getting the imageName ( name of the image included in the bundle). How do I reference image my AppIcon.

Screenshot 2021-01-21 at 1 51 39 PM

What is "image_name_in_bundle"?

Did you follow all the instructions as specified in the Twilio Quickstart repositories? Yes What version of React Native are you running? 0.63.3 What version of react-native-twilio-programmable-voice are you running? 4.3.0 What device are you using? (e.g iOS10 simulator, Android 7 device)? Iphone 7 Plus Is your app running in foreground, background or not running? Not Applicableble Is there any relevant message in the log? No If using iOS, which pod version are you using? 5.1.1

Step to reproduce

Advanced: Have you tried adding break point using AndroidStudio or XCode and analyse the logs? can share a project with issue? Did you try to reinstall the pods completely?

jdegger commented 3 years ago

Hi this is the file name of whatever is in your asset folder. If your bundle is configured correctly, all the images in your project will be included and can be used in this case.

Note that you just place the file somewhere in your react JavaScript project, you don't have to do this in xcode.

salman-pixarsart commented 3 years ago

Hi @jdegger. Suppose I've a image AppIcon.png in my assets folder in my Project. Would I be applying the like I've done below?

            TwilioVoice.configureCallKit({
              appName: 'MyAppName',
              imageName: 'AppIcon',
            });

I've tried this with Bundled Image but It is not showing up on the callkit.

jdegger commented 3 years ago

It should be imageName: 'AppIcon.png', does that work?

usamaabutt commented 3 years ago

@jdegger i have tried this but it's not working