Can I call objective-c code in java?

Skip to first unread message

John Hubert Ma

Jul 15, 2019, 11:38:59 PM7/15/19
to Google APIs Client Library for Objective-C
Hi guys,

I am mainly interested in using the google nearby messages framework(GNSPermission, GNSMessageManager, GNSPublication, GNSSubscription) on our java code. Is this possible?

A little bit of background ... we want our non-mobile device to continuously send out a simple broadcast message(a short string) that would be detected by a mobile device when the mobile device gets into a certain proximity to our non-mobile device. Our non-mobile device can run code written on c,c++,java and python so we are trying to find a way to code the google nearby message publisher in any of the said languages. I've searched for a list of exposed libraries and samples but found nothing that can point me in the right direction. Seeing as how swift can leverage on the existing objective-c library for the google nearby message framework, I was thinking maybe we could also make it work for java. Is this possible?

Thanks :)

Thomas Van Lenten

Jul 17, 2019, 1:36:56 PM7/17/19
to Google APIs Client Library for Objective-C
The objc support is really for Apple platforms as it makes use of Apple's networking support.  Swift can use ObjC, but also only on Apple platforms, Swift for linux doesn't include the ObjC support.


Matthew Becker

Jul 17, 2019, 8:26:13 PM7/17/19
Just a thought but I don't see why you couldn't setup a Mac server or some Apple device running a program using objective C and Swift then have this program make calls to the server using JSON. You could write a function in Swift to post to python JSON endpoint on a loop every few seconds asking the python to return object data if mobile users are around, then you could leverage the Google Object C library.

You received this message because you are subscribed to the Google Groups "Google APIs Client Library for Objective-C" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

Matthew A. Becker
Cell: 239-340-1149 
1635 Jackson Street
Fort Myers, Fl 33901

Reply all
Reply to author
0 new messages