flutter-webrtc / callkeep

iOS CallKit and Android ConnectionService for Flutter
MIT License
130 stars 139 forks source link

callkeep example with any RTC/VOIP like agora.io #101

Open viztushar opened 2 years ago

viztushar commented 2 years ago

please provide Callkeep example with any RTC/VOIP like agora.io. so that we can understand much batter how the callkeep implement works.

thanks.

hmarat commented 2 years ago

please provide Callkeep example with any RTC/VOIP like agora.io. so that we can understand much batter how the callkeep implement works.

thanks.

Have you implemented it?

devDonald commented 2 years ago

please provide Callkeep example with any RTC/VOIP like agora.io. so that we can understand much batter how the callkeep implement works.

thanks.

Please Have you been able to implement this

viztushar commented 2 years ago

please provide Callkeep example with any RTC/VOIP like agora.io. so that we can understand much batter how the callkeep implement works.

thanks.

Please Have you been able to implement this

Yes, maybe it's not right way but I have directly implemented the agora code into CallKeep.

devDonald commented 2 years ago

please provide Callkeep example with any RTC/VOIP like agora.io. so that we can understand much batter how the callkeep implement works.

thanks.

Please Have you been able to implement this

Yes, maybe it's not right way but I have directly implemented the agora code into CallKeep.

Please, can you guide me on how to do it. Or maybe some code sample

benyaminbeyzaie commented 2 years ago

please provide Callkeep example with any RTC/VOIP like agora.io. so that we can understand much batter how the callkeep implement works.

thanks.

Please Have you been able to implement this

Yes, maybe it's not right way but I have directly implemented the agora code into CallKeep.

Can you please share your solution? Thanks

viztushar commented 2 years ago

@devDonald @benyaminbeyzaie

as i said this is maybe not right way but it get job done

first declare agora variable(callkeep.h) and in callkeep.pod file Screenshot 2021-09-22 at 2 44 17 PM

(callkeep.m) step 1: - initialize agora with key Screenshot 2021-09-22 at 2 43 55 PM

step 2: get data from firebase or voip push and save to the NSUserDefaults in ios and shared preferences in android using method channel

Screenshot 2021-09-22 at 2 38 39 PM

step 3: create one more method if you want to use those firebase and voip push data into flutter called "getData" this will return the all the save data(above)

Screenshot 2021-09-22 at 2 38 54 PM

step 4: if user answer the call then init data with agora

Screenshot 2021-09-22 at 2 40 01 PM

end call Screenshot 2021-09-22 at 2 40 09 PM

and if user leave the channel Screenshot 2021-09-22 at 2 40 45 PM

bihim commented 2 years ago

Are these swift code or objective C?

viztushar commented 2 years ago

Are these swift code or objective C?

Objective c