小编Asi*_*ood的帖子

错误:找不到类'App\Model\Entity\DefaultPasswordHasher'

<?php
namespace App\Model\Entity;

use Cake\ORM\Entity;

/**
 * User Entity.
 */
class User extends Entity
{

    /**
     * Fields that can be mass assigned using newEntity() or patchEntity().
     * Note that '*' is set to true, which allows all unspecified fields to be
     * mass assigned. For security purposes, it is advised to set '*' to false
     * (or remove), and explicitly make individual fields accessible as needed.
     *
     * @var array
     */
    protected $_accessible = [
        '*' => true,
        'id' …
Run Code Online (Sandbox Code Playgroud)

cakephp-3.0

11
推荐指数
1
解决办法
5147
查看次数

通过Geolocation API在后台运行phonegap应用程序时,在特定时间间隔后获取设备的位置

我已经在PhoneGap中开发了一个应用程序,它通过地理定位API跟踪您的行进路线,我通过navigator.geolocation.getCurrentPosition(onSuccess, onError);定期间隔后通过获取位置来获取设备的当前位置并更新折线navigator.geolocation.watchPosition(function(position) 但是现在问题是它不能在后台工作,即(当我打开另一个应用程序并且它开始在后台运行时)它不会更新折线意味着不会触发此navigator.geolocation.watchPosition(function(position)功能所以我尝试通过Cordova-plugin-background-mode此插件运行应用程序,它开始在后台运行应用程序并再次触发该navigator.geolocation.watchPosition(function(position)函数意味着这不是必需的,即(没有必要安装插件以在后台模式下运行应用程序).所以请帮我解决在后台模式下获取位置的问题.如果我使用这个Cordova-plugin-mauron85-background-geolocation插件,我可以获得一个位置,因为我通过观察位置?如果应用程序在前台运行该怎么办?我是否必须使用该watchPosition功能或其他东西?

android geolocation cordova

5
推荐指数
1
解决办法
458
查看次数

标签 统计

android ×1

cakephp-3.0 ×1

cordova ×1

geolocation ×1