Working with App Groups

Working with App Groups
An
App
Group
allows
different
applications
(or
an
application
and
its
extensions)
to
access
a
shared
file
storage
location.
App
Groups
can
be
used
for
data
like:
Apple
Watch
Settings.
Shared
NSUserDefaults.
Shared
Files.
Configure an App Group
The
shared
location
is
configured
using
an
App
Group,
which
is
configured
in
the
Certificates,
Identifiers & Profiles
section
on
iOS
Dev
Center.
This
value
must
also
be
referenced
in
each
project's
Entitlements.plist.
Provisioning
The
app
group
will
have
an
identifier,
which
is
typically
your
Bundle
ID
with
a
group.
prefix.
For
example,
we
could
use
the
Bundle
ID
com.xamarin.WatchSettings
and
the
app
group
group.com.xamarin.WatchSettings.
Entitlements.plist
As
well
as
configuring
the
provisioning
profile,
Enable App Groups
in
the
Entitlements.plist
and
enter
the
ID
you've
chosen:
Deployment
Ensure
you
configure
the
App
Group
correctly
in
your
deployment
provisioning.