Page MenuHomePhabricator

[native] Add sendPong method
ClosedPublic

Authored by tomek on Feb 8 2022, 6:56 AM.
Tags
None
Referenced Files
F1779285: D3133.id9516.diff
Fri, May 17, 8:10 PM
F1779284: D3133.id9514.diff
Fri, May 17, 8:10 PM
F1779283: D3133.id9442.diff
Fri, May 17, 8:10 PM
F1779282: D3133.id9395.diff
Fri, May 17, 8:09 PM
F1779281: D3133.id.diff
Fri, May 17, 8:09 PM
F1779280: D3133.diff
Fri, May 17, 8:08 PM
Unknown Object (File)
Tue, May 14, 9:22 PM
Unknown Object (File)
Thu, May 2, 5:50 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.