Skip to main content
Participating Frequently
April 14, 2015
Question

|ios|adobe vibration + game center ane conflict

  • April 14, 2015
  • 1 reply
  • 742 views

Hello, I am having trouble then I try to use adobe's vibration and Game center ane's in a project.

debug mode log:

[SWF] com.adobe.Vibration - 857 bytes after decompression

[SWF] com.adobe.ane.gameCenter - 2079 bytes after decompression

[SWF] Vibration and Gamecenter.swf - 142 bytes after decompression

Vibration isSupported()

Vibration Constructor: Create an extension context

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

  at com.adobe.nativeExtensions::Vibration$/initExtension()[/Users/meetshah/Documents/Adobe Flash Builder 4.5/VibrationActionScriptLibrary/src/com/adobe/nativeExtensions/Vibration.as:58]

  at com.adobe.nativeExtensions::Vibration$/get isSupported()[/Users/meetshah/Documents/Adobe Flash Builder 4.5/VibrationActionScriptLibrary/src/com/adobe/nativeExtensions/Vibration.as:43]

  at GameCenterTest()

  at GameCenterTest()

Cannot display source code at this location.

Vibration isSupported()

air sdk: 17.0.0.138

Project:

Dropbox - vibration and gamecenter.zip

This topic has been closed for replies.

1 reply

tdwivedi
Adobe Employee
Adobe Employee
April 15, 2015

Hi Nitacawo,

I tried reproducing the issue. And I couldn't find the reference to the path "/Users/meetshah/Documents/Adobe Flash Builder 4.5/VibrationActionScriptLibrary/src/com/adobe/nativeExtensions/Vibration.as" Is it from the swc file that is used in the project ? Can you rather provide the code so that we could find out what is going wrong here ?

-Tushar

Known Participant
August 7, 2015

Hey there tdwivedi

I am having kinda the same issue with the Vibration ane on iOS only. On Android the same code works perfect.

if (Vibration.isSupported)

{

                vibe = new Vibration();

}

Here is the trace:

Vibration isSupported()

Vibration Constructor: Create an extension context

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

Tested on an iPad 2

Any clue how i can get around this error?

tdwivedi
Adobe Employee
Adobe Employee
August 11, 2015

Hi Rares Neamtiu,

We could successfully reproduce the issue. We will be communicating it to the concerned team for further investigation.

-Tushar