0

trigger.io アプリに Flurry Analytics を実装しようとしています。Android デバイスで setLocationの例を実行する場合:

forge.geolocation.getCurrentPosition(function (position) {
    forge.flurry.setLocation(position.coords);
});

次のエラーが表示されます。

Error while executing API method: flurry.setLocation  

message: "Forge Java error: NumberFormatException: Invalid BigInteger: 45.5150396"  
type: "UNEXPECTED_FAILURE"  
full_error:
java.lang.NumberFormatException: Invalid BigInteger: 45.5150396
  at java.math.BigInt.invalidBigInteger(BigInt.java:124)
  at java.math.BigInt.checkString(BigInt.java:180)
  at java.math.BigInt.putDecString(BigInt.java:128)
  at java.math.BigInteger.<init>(BigInteger.java:183)
  at com.google.gson.internal.LazilyParsedNumber.longValue(LazilyParsedNumber.java:51)
  at com.google.gson.JsonPrimitive.getAsLong(JsonPrimitive.java:233)
  at io.trigger.forge.android.modules.flurry.API.setLocation(API.java:65)
  at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511)
  at io.trigger.forge.android.core.ForgeApp.callJavaFromJavaScript(ForgeApp.java:315)
  at io.trigger.forge.android.core.ForgeJSBridge$1.run(ForgeJSBridge.java:25)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
  at java.lang.Thread.run(Thread.java:856)

position.coords の緯度と経度を丸めることでこの問題を回避できるようですが、精度は少し犠牲になります。

ここで何か間違ったことをしていますか、それとも将来のリリースで修正できるバグですか?

4

1 に答える 1