代码调整
This commit is contained in:
parent
43a5c18937
commit
4db0e14c02
@ -66,7 +66,11 @@ public partial class MainPage : ContentPage
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
_mainMainViewModel = mainViewModel;
|
_mainMainViewModel = mainViewModel;
|
||||||
BindingContext = _mainMainViewModel;
|
BindingContext = _mainMainViewModel;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnAppearing()
|
||||||
|
{
|
||||||
|
base.OnAppearing();
|
||||||
#if IOS
|
#if IOS
|
||||||
SetNFCCallbacks();
|
SetNFCCallbacks();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -30,5 +30,11 @@
|
|||||||
<string>Assets.xcassets/appicon.appiconset</string>
|
<string>Assets.xcassets/appicon.appiconset</string>
|
||||||
<key>NFCReaderUsageDescription</key>
|
<key>NFCReaderUsageDescription</key>
|
||||||
<string>此应用需要使用NFC功能来与智能锁设备通信</string>
|
<string>此应用需要使用NFC功能来与智能锁设备通信</string>
|
||||||
|
<key>UIBackgroundModes</key>
|
||||||
|
<array>
|
||||||
|
<string>fetch</string>
|
||||||
|
<!-- 如果需要 NFC 后台操作,添加: -->
|
||||||
|
<string>nfc-tag-reading</string>
|
||||||
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user