how to know the main app is running in keyboard extension?

162 Views Asked by At

I create a custom keyboard extension of main app. In the extension, i want to know if the main app is running?

Is there any way to make it work?

I have created the app group, and i share data with the UserDefaults

var share: UserDefaults? = UserDefaults(suiteName: "group.share.keyboard")
 

But i do not know how to realize if the main app is running, please help me, thank you very much! I have search many ways, but not work

0

There are 0 best solutions below