Flutter 与细分分析
Flutter with Segment Analytics
我正在尝试将 Segment-Analytics 添加到 Flutter 应用程序,但目前,在添加库后,我的应用程序似乎无法启动,但构建仍然成功。库:https://pub.dev/packages/flutter_segment
当我运行颤动时运行:
Waiting for iPhone 12 Pro Max to report its views...
Debug service listening on ws://127.0.0.1:60371/UvkZwEEEE9Q=/ws
Syncing files to device iPhone 12 Pro Max...
Lost connection to device.
详细结尾几行:
[ +2 ms] Updating assets
[ +800 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more information see #56466.
[ +84 ms] Syncing files to device iPhone 12 Pro Max...
[ +3 ms] Scanning asset files
[ +40 ms] <- reset
[ ] Compiling dart to kernel with 0 updated files
[ +7 ms] <- recompile package:foobar/main.dart ca15a951-5490-4e2d-b153-7b8a5eeeb160
[ ] <- ca15a951-5490-4e2d-b153-7b8a5eeeb160
[ +9 ms] flutter: [debug] release: my.foobar.testseg@0.0.2+2
[ +5 ms] Service protocol connection closed.
[ +2 ms] Lost connection to device.
[ +294 ms] Updating files
[ +8 ms] Error writing "build/flutter_assets/assets/images/gadget.png" to DevFS: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 63860
[ ] trying again in a few - 9 more attempts left
[ ] Error writing "build/flutter_assets/assets/images/logo/ticked.svg" to DevFS: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 63861
[ ] trying again in a few - 9 more attempts left
[ +1 ms] Error writing "build/flutter_assets/assets/images/logo/kyc.svg" to DevFS: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 63862
[ ] trying again in a few - 9 more attempts left
关于如何解决 flutter 以便能够将分析数据发送到细分分析的任何建议,目前它不支持从 Web 应用程序。
P/S: 任何替代软件建议也将有所帮助,谢谢。
将Segment写入密钥添加到本机配置,
这将暂时解决它。有一个悬而未决的问题-
https://github.com/claimsforce-gmbh/flutter-segment/issues/87
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
[...]
<key>com.claimsforce.segment.WRITE_KEY</key>
<string>YOUR_WRITE_KEY_GOES_HERE</string>
<key>com.claimsforce.segment.TRACK_APPLICATION_LIFECYCLE_EVENTS</key>
<false/>
<key>com.claimsforce.segment.ENABLE_AMPLITUDE_INTEGRATION</key>
<false/>
[...]
</dict>
</plist>
我正在尝试将 Segment-Analytics 添加到 Flutter 应用程序,但目前,在添加库后,我的应用程序似乎无法启动,但构建仍然成功。库:https://pub.dev/packages/flutter_segment
当我运行颤动时运行:
Waiting for iPhone 12 Pro Max to report its views...
Debug service listening on ws://127.0.0.1:60371/UvkZwEEEE9Q=/ws
Syncing files to device iPhone 12 Pro Max...
Lost connection to device.
详细结尾几行:
[ +2 ms] Updating assets
[ +800 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more information see #56466.
[ +84 ms] Syncing files to device iPhone 12 Pro Max...
[ +3 ms] Scanning asset files
[ +40 ms] <- reset
[ ] Compiling dart to kernel with 0 updated files
[ +7 ms] <- recompile package:foobar/main.dart ca15a951-5490-4e2d-b153-7b8a5eeeb160
[ ] <- ca15a951-5490-4e2d-b153-7b8a5eeeb160
[ +9 ms] flutter: [debug] release: my.foobar.testseg@0.0.2+2
[ +5 ms] Service protocol connection closed.
[ +2 ms] Lost connection to device.
[ +294 ms] Updating files
[ +8 ms] Error writing "build/flutter_assets/assets/images/gadget.png" to DevFS: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 63860
[ ] trying again in a few - 9 more attempts left
[ ] Error writing "build/flutter_assets/assets/images/logo/ticked.svg" to DevFS: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 63861
[ ] trying again in a few - 9 more attempts left
[ +1 ms] Error writing "build/flutter_assets/assets/images/logo/kyc.svg" to DevFS: SocketException: OS Error: Connection refused, errno = 61, address = 127.0.0.1, port = 63862
[ ] trying again in a few - 9 more attempts left
关于如何解决 flutter 以便能够将分析数据发送到细分分析的任何建议,目前它不支持从 Web 应用程序。
P/S: 任何替代软件建议也将有所帮助,谢谢。
将Segment写入密钥添加到本机配置, 这将暂时解决它。有一个悬而未决的问题- https://github.com/claimsforce-gmbh/flutter-segment/issues/87
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
[...]
<key>com.claimsforce.segment.WRITE_KEY</key>
<string>YOUR_WRITE_KEY_GOES_HERE</string>
<key>com.claimsforce.segment.TRACK_APPLICATION_LIFECYCLE_EVENTS</key>
<false/>
<key>com.claimsforce.segment.ENABLE_AMPLITUDE_INTEGRATION</key>
<false/>
[...]
</dict>
</plist>