Skip to main content
Inspiring
February 29, 2012
Answered

networkinfo native extensions crashes

  • February 29, 2012
  • 1 reply
  • 1303 views

So i'm trying to have some type of persistent ID in my iOS game I'm working on to link user's highscores..

I would use UUID but A) there doesn't seem to be an extension for it and B) it looks like Apple is deprecating the ability to get the UUID

So the only option i could come up with is what i read online about using the mac address from one of the hardware items in the user's device.

here goes networkinfo... which apparently isn't supported in iOS (but it is in android... go figure adobe) so then i see there's a native extension for it on adobe's website

i include the networkinfo native extension just like i've included the other 5 or 6 native extensions i'm using and copy and paste their api and get the following error thrown (seen in remote debugging)

Specifically:

ArgumentError: Error #3500: The extension context does not have a method with the name getInterfaces.

when i call findInterfaces()

any ideas?

This topic has been closed for replies.
Correct answer K2xL_com

I found my problem. The problem was that it was conflicting with some ExtInitializer of another extension (specifically the iOS Air Inline Email Native Extension). I went to my build path in FB 4.6 and I saw that underneath my extension there was a red warning explaining that it was conflicting with another native extension.    

I simply disabled that extension and everything worked correctly.

1 reply

Participating Frequently
March 6, 2012

Hi,
There can be diferent reasons for this. 
Maby there was an error while initalizing extension
Or maby There was a problem that You didn't add the extension in the packagin option not only add the extension bu check it in the IOS platform to package it.
Bu I have this extension that I'v made https://github.com/mateuszmackowiak/NativeAlert
There is a SystemProperties that return MAC adress on IOS (its not documented now) So try this.

K2xL_comAuthorCorrect answer
Inspiring
March 8, 2012

I found my problem. The problem was that it was conflicting with some ExtInitializer of another extension (specifically the iOS Air Inline Email Native Extension). I went to my build path in FB 4.6 and I saw that underneath my extension there was a red warning explaining that it was conflicting with another native extension.    

I simply disabled that extension and everything worked correctly.