android - 如何在 Xamarin Android 上向用户发送信息
问题描述
假设我有一个用 Xamarin 编写的 Android 应用程序。有没有办法让我(即在 Play Store 上发布该应用程序的开发人员)通过发送一些自动存储在本地数据库中的信息与我的应用程序用户进行交互?特别是,我想向用户发送一个新代码,该代码将基于一些先前编码的逻辑来改变应用程序的行为。例如,假设加载时应用程序读取 SQLite DB 上的表并查看最新记录。假设第一次安装和启动应用程序时,第一条记录的值等于 1。应用程序每次启动应用程序时都会读取该表,并根据最近的记录更改应用程序的某些行为。例如,在开始时(即最近的记录等于 1 时)我的主要活动的背景颜色是白色。
有没有办法做到这一点?
解决方案
Yes you can.
First, when starting the application, you send a request to the server to synchronize your local database, so you will get always the latest values.
After that, you can load the views according to the information that you have, and apply your logic.
推荐阅读
- javascript - 有没有办法验证请求中给出的值是否存在于邮递员中?
- i18next - 有没有办法通过 i18next 中的 translate 函数返回整个命名空间?
- c# - 为什么我的播放器在 Unity 的屏幕上向下移动
- docker - 如何完全在 traefik 后面的前缀 url 上运行 JupyterHub/JupyterLab
- scala - 如何模拟函数以在scala中返回虚拟值?
- c# - 开发 LINQ 查询,其中列值可以硬编码但行标题是动态的
- javascript - Javascript if else 语句基于过滤器执行代码
- javascript - 如何使用 refs 控制兄弟元素的行为?
- javascript - js中如何使用requestAnimationFrame做出转场效果?
- ios - 在 iOS 应用程序中访问关联域的 Safari 和 Chrome cookie