-
Notifications
You must be signed in to change notification settings - Fork 84
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
Implemented expo plugin #111
base: master
Are you sure you want to change the base?
Conversation
God bless. |
issue: when updating the callerName via RN, the underlying callerName still retains "Connecting..." This happens because of this line: |
modResults.contents = modResults.contents.replace( | ||
/#import "AppDelegate.h"/g, | ||
`#import "AppDelegate.h" | ||
#import <PushKit/PushKit.h> |
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.
as a suggestion, there is a function in expo plugin to handle imports.
const { addObjcImports } = require('@expo/config-plugins/build/ios/codeMod');
Then, you can use it like this.
modResults.contents = addObjcImports(modResults.contents, ['#import <PushKit/PushKit.h>', '#import "RNVoipPushNotificationManager.h"', '#import "RNCallKeep.h"'])
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.
You can see a full example in this project.
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.
This should be a comment, not a review.
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.
Thanks @AZReed. Kinda confuse about this. Should I proceed making this changes you suggest?
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.
That's the problem with reviews. It's hard to tell of someone is just flexing or not. They say "suggestion" but open a review.
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.
Hey @jexodusmercado
Maybe it should have been a comment, not sure, my apologies for the confusion. I press the comment
option in the review, not the request changes
, I though that was clear enough.
It's your time and you already did enough, so it's up to you.
Thanks for your work by the way, it's awesome!
Hey guys, LOVE this, its badly needed. Suggestion: the 'video' property (YES or NO) should be based on the payload (like UUID, Handle etc). Otherwise there's no way to initiate a video call (which is important as it opens the app straight away once the call is accepted, and also appears in the call description) And on that note, I think all properties should be configurable from payload, and have defaults (if not provided in the payload). I spent a lot of time working out why the app was crashing due to hard coded expectation of variables in the payload. For example, handle could be 'Unknown caller' if no handle property is in the data dictionary. Video could default to YES. |
yes please |
…n-video calls. remove merging invocation block due to authentication issues whennot initiating inside root.
@ianlin Can we get this on a track for merging soon? |
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.
🚀
@zxcpoiu can you check and merge this if applicable? Thanks! |
what's the hold up? |
Hi @jexodusmercado thanks for the work, and the late respond. I'm not using expo, so not familiar the plugin structure and magics. There is another expo support PR discussion at react-native-webrtc/react-native-webrtc#1013 and react-native-webrtc/react-native-webrtc#1014 which uses Expo Config Plugin. At a glance I have few points as follow:
Wouldn't it better to create another repo like: And we can add expo user guide in README redirect to the expo repo. Sound good? |
Added expo plugin to modify AppDelegate with development builds
Note: I haven't included any test to check the generated AppDelegate. Currently works with my setup. Let me know if you have encountered any issues