Page MenuHomePhabricator

[native] Add sendPong method
ClosedPublic

Authored by tomek on Feb 8 2022, 6:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 2, 4:41 AM
Unknown Object (File)
Sat, Nov 2, 4:41 AM
Unknown Object (File)
Sat, Nov 2, 4:41 AM
Unknown Object (File)
Sat, Nov 2, 4:41 AM
Unknown Object (File)
Sat, Nov 2, 4:41 AM
Unknown Object (File)
Sat, Nov 2, 4:37 AM
Unknown Object (File)
Oct 16 2024, 11:25 PM
Unknown Object (File)
Oct 14 2024, 10:41 PM

Details

Summary

Add a C++ method that can be called from java. This method should be called in a response to PING background notification.
We're still using an old method here, which will be replaced by send soon, but updating it should be trivial.

Depends on D3132

Test Plan

Modify notification handling code to call NetworkModule.sendPong(), send a notification and check if the C++ code was called

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Feb 8 2022, 7:07 AM
Harbormaster failed remote builds in B6630: Diff 9395!
tomek requested review of this revision.Feb 9 2022, 5:04 AM
This revision is now accepted and ready to land.Feb 9 2022, 5:11 AM
This revision now requires review to proceed.Feb 9 2022, 5:11 AM
ashoat added reviewers: atul, jim.
ashoat added a subscriber: jim.

Same comment as D3132:

I really don't know much about what's going on here... @karol-bisztyga and @palys-swm are the only ones on the team who have really explored Android JNI generally or fbjni specifically. Adding @jimpo since I know he's done some Android stuff, but not sure if he has context. Will accept, deferring to @karol-bisztyga and @palys-swm.

This revision is now accepted and ready to land.Feb 9 2022, 9:41 PM
This revision was automatically updated to reflect the committed changes.