我一直在这里看一些关于这个问题的不同帖子,没有什么能解决我的问题.
在我的启动画面加载并显示约2秒后,会出现一个白色屏幕,显示约2秒钟,然后显示应用程序内容.
此问题仅存在于iOS上,并且仅在我使用iOS 6.1和7在3.5"上运行模拟器时才存在.
我有
<preference name="AutoHideSplashScreen" value="false" />
Run Code Online (Sandbox Code Playgroud)
所以我可以手动控制启动屏幕何时隐藏在deviceready事件中:
function onDeviceReady() {
setTimeout(function () {navigator.splashscreen.hide()},2000);
//more stuff
}
Run Code Online (Sandbox Code Playgroud)
问题是,这并不能阻止防溅板过早隐藏.我看到完全相同的行为,除了加载微调器在2000年后消失.
那么......到底是怎么回事?
我已经被这个问题困扰了一段时间了,所以我希望你能让我朝着正确的方向前进.
我的角度工厂返回一个看起来像这样的对象
[{
name:"Fall",
year:"20xx",
id: some_id_#
}, ....]
Run Code Online (Sandbox Code Playgroud)
这是一个学期列表,每个学期都有一个包含姓名,年份和学期ID的对象.我正在使用ionic作为我的UI框架,我想将我的HTML输出设置为这样......
2012
秋季
春季
2013
冬
春季
2014
等等
等等
每年哪里是一个列表分隔符.我的HTML目前看起来像这样
<ion-list show-delete="data.showDelete">
<!-- I WAN TO CHANGE THIS TO BE A DYNAMIC HEADER ADDED FOR EACH NEAR YEAR-->
<ion-item class="item-divider">
Semesters
</ion-item>
<ion-item ng-show="semesters.length == 0">
No semesters yet!
</ion-item>
<ion-item class="item-dark item-icon-right" href="#/app/class-list/{{semester.id}}/{{semester.name}}/{{semester.year}}" ng-repeat="semester in semesters">
<ion-delete-button class="ion-ios7-trash-outline"
ng-click="deleteSemester(semester)">
</ion-delete-button>
{{semester.name}} {{semester.year}}
<i class="icon ion-ios7-arrow-forward"></i>
</ion-item>
</ion-list>
Run Code Online (Sandbox Code Playgroud)
,我不喜欢用逻辑混淆我的观点,因为它属于控制器,但我不知道如何去做,啊哈.
多谢你们!
我很难弄清楚我的Laravel应用程序究竟发生了什么.它在本地功能齐全(Mac,PHP 5.5.26),所以我一直在通过伪造(php 5.6.15)在我的数字海洋液滴上测试应用程序.
我正在使用此程序包将推送通知发送到使用我的Laravel api的前端应用程序.为了使api调用更快,我将推送通知委托给在本地工作得很好的Laravel队列,但是当我在数字海洋上测试时,我收到了这个错误.
[2016-01-09 20:34:09] stage.ERROR: exception 'ErrorException' with message 'Erroneous data format for unserializing 'ArrayIterator'' in {path}/{project}/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php:74
Run Code Online (Sandbox Code Playgroud)
我正在使用数据库驱动程序.这是我的本地数据库作业表中的序列化作业行...
{"job":"Illuminate\\Queue\\CallQueuedHandler@call","data":{"command":"O:28:\"App\\Jobs\\Push\\SendPushFollow\":4:{s:34:\"\u0000App\\Jobs\\Push\\SendPushFollow\u0000push\";O:27:\"App\\Helpers\\Push\\PushFollow\":5:{s:14:\"\u0000*\u0000ios_devices\";O:50:\"Sly\\NotificationPusher\\Collection\\DeviceCollection\":1:{s:7:\"\u0000*\u0000coll\";C:13:\"ArrayIterator\":21:{x:i:0;a:0:{};m:a:0:{}}}s:16:\"\u0000*\u0000android_count\";i:2;s:12:\"\u0000*\u0000ios_count\";i:0;s:18:\"\u0000*\u0000android_devices\";O:50:\"Sly\\NotificationPusher\\Collection\\DeviceCollection\":1:{s:7:\"\u0000*\u0000coll\";C:13:\"ArrayIterator\":953:{x:i:0;a:2:{s:162:\"APA91bGCWGMQlh6kMYVVPUjnkDKtgLmYBiHxv1WY4r3zPjmXO3C0_UcvBCoOWkiiiC8lBc4JRILBDo29K0BtGNQKKQAA46tCvJocklTp3u7_x4q8Nz9CubNuqJN_OaMRBys_HWUqNXPLzIbodjEHV_bTc-CUKurnRQ\";O:35:\"Sly\\NotificationPusher\\Model\\Device\":2:{s:42:\"\u0000Sly\\NotificationPusher\\Model\\Device\u0000token\";s:162:\"APA91bGCWGMQlh6kMYVVPUjnkDKtgLmYBiHxv1WY4r3zPjmXO3C0_UcvBCoOWkiiiC8lBc4JRILBDo29K0BtGNQKKQAA46tCvJocklTp3u7_x4q8Nz9CubNuqJN_OaMRBys_HWUqNXPLzIbodjEHV_bTc-CUKurnRQ\";s:13:\"\u0000*\u0000parameters\";a:0:{}}s:162:\"APA91bEUPnqR3t8KDhE0YTsc_HnkoxFvw4WyUpRxISm2A_2Ep7orCySVKsh2oRVSQTVOhSZS_yYjP7gup5vEnuwz2JPXcxHCc19P98E2QVNyjhTP_NvDkcfkogVIHAHpgelyGRuvm8aQ-SAs9uirxd3iBHPlZb16zA\";O:35:\"Sly\\NotificationPusher\\Model\\Device\":2:{s:42:\"\u0000Sly\\NotificationPusher\\Model\\Device\u0000token\";s:162:\"APA91bEUPnqR3t8KDhE0YTsc_HnkoxFvw4WyUpRxISm2A_2Ep7orCySVKsh2oRVSQTVOhSZS_yYjP7gup5vEnuwz2JPXcxHCc19P98E2QVNyjhTP_NvDkcfkogVIHAHpgelyGRuvm8aQ-SAs9uirxd3iBHPlZb16zA\";s:13:\"\u0000*\u0000parameters\";a:0:{}}};m:a:0:{}}}s:10:\"\u0000*\u0000message\";O:36:\"Sly\\NotificationPusher\\Model\\Message\":2:{s:42:\"\u0000Sly\\NotificationPusher\\Model\\Message\u0000text\";s:32:\"John Smith is now following you!\";s:10:\"\u0000*\u0000options\";a:12:{s:5:\"badge\";i:1;s:5:\"sound\";s:12:\"example.aiff\";s:12:\"actionLocKey\";s:20:\"Action button title!\";s:6:\"locKey\";s:13:\"localized key\";s:7:\"locArgs\";a:2:{i:0;s:14:\"localized args\";i:1;s:14:\"localized args\";}s:11:\"launchImage\";s:9:\"image.jpg\";s:5:\"title\";s:21:\"InMyBag: New Follower\";s:6:\"custom\";a:0:{}s:5:\"notId\";i:7;s:5:\"style\";s:5:\"inbox\";s:8:\"ledColor\";a:4:{i:0;i:0;i:1;i:0;i:2;i:255;i:3;i:0;}s:16:\"vibrationPattern\";a:3:{i:0;i:500;i:1;i:250;i:2;i:500;}}}}s:5:\"queue\";N;s:5:\"delay\";N;s:6:\"\u0000*\u0000job\";N;}"}}
Run Code Online (Sandbox Code Playgroud)
这是服务器表中的行条目......
{"job":"Illuminate\\Queue\\CallQueuedHandler@call","data":{"command":"O:28:\"App\\Jobs\\Push\\SendPushFollow\":4:{s:34:\"\u0000App\\Jobs\\Push\\SendPushFollow\u0000push\";O:27:\"App\\Helpers\\Push\\PushFollow\":5:{s:14:\"\u0000*\u0000ios_devices\";O:50:\"Sly\\NotificationPusher\\Collection\\DeviceCollection\":1:{s:7:\"\u0000*\u0000coll\";O:13:\"ArrayIterator\":0:{}}s:16:\"\u0000*\u0000android_count\";i:2;s:12:\"\u0000*\u0000ios_count\";i:0;s:18:\"\u0000*\u0000android_devices\";O:50:\"Sly\\NotificationPusher\\Collection\\DeviceCollection\":1:{s:7:\"\u0000*\u0000coll\";O:13:\"ArrayIterator\":2:{s:162:\"APA91bGCWGMQlh6kMYVVPUjnkDKtgLmYBiHxv1WY4r3zPjmXO3C0_UcvBCoOWkiiiC8lBc4JRILBDo29K0BtGNQKKQAA46tCvJocklTp3u7_x4q8Nz9CubNuqJN_OaMRBys_HWUqNXPLzIbodjEHV_bTc-CUKurnRQ\";O:35:\"Sly\\NotificationPusher\\Model\\Device\":2:{s:42:\"\u0000Sly\\NotificationPusher\\Model\\Device\u0000token\";s:162:\"APA91bGCWGMQlh6kMYVVPUjnkDKtgLmYBiHxv1WY4r3zPjmXO3C0_UcvBCoOWkiiiC8lBc4JRILBDo29K0BtGNQKKQAA46tCvJocklTp3u7_x4q8Nz9CubNuqJN_OaMRBys_HWUqNXPLzIbodjEHV_bTc-CUKurnRQ\";s:13:\"\u0000*\u0000parameters\";a:0:{}}s:162:\"APA91bEUPnqR3t8KDhE0YTsc_HnkoxFvw4WyUpRxISm2A_2Ep7orCySVKsh2oRVSQTVOhSZS_yYjP7gup5vEnuwz2JPXcxHCc19P98E2QVNyjhTP_NvDkcfkogVIHAHpgelyGRuvm8aQ-SAs9uirxd3iBHPlZb16zA\";O:35:\"Sly\\NotificationPusher\\Model\\Device\":2:{s:42:\"\u0000Sly\\NotificationPusher\\Model\\Device\u0000token\";s:162:\"APA91bEUPnqR3t8KDhE0YTsc_HnkoxFvw4WyUpRxISm2A_2Ep7orCySVKsh2oRVSQTVOhSZS_yYjP7gup5vEnuwz2JPXcxHCc19P98E2QVNyjhTP_NvDkcfkogVIHAHpgelyGRuvm8aQ-SAs9uirxd3iBHPlZb16zA\";s:13:\"\u0000*\u0000parameters\";a:0:{}}}}s:10:\"\u0000*\u0000message\";O:36:\"Sly\\NotificationPusher\\Model\\Message\":2:{s:42:\"\u0000Sly\\NotificationPusher\\Model\\Message\u0000text\";s:32:\"John Smith is now following you!\";s:10:\"\u0000*\u0000options\";a:12:{s:5:\"badge\";i:1;s:5:\"sound\";s:12:\"example.aiff\";s:12:\"actionLocKey\";s:20:\"Action button title!\";s:6:\"locKey\";s:13:\"localized key\";s:7:\"locArgs\";a:2:{i:0;s:14:\"localized args\";i:1;s:14:\"localized args\";}s:11:\"launchImage\";s:9:\"image.jpg\";s:5:\"title\";s:21:\"InMyBag: New Follower\";s:6:\"custom\";a:0:{}s:5:\"notId\";i:10;s:5:\"style\";s:5:\"inbox\";s:8:\"ledColor\";a:4:{i:0;i:0;i:1;i:0;i:2;i:255;i:3;i:0;}s:16:\"vibrationPattern\";a:3:{i:0;i:500;i:1;i:250;i:2;i:500;}}}}s:5:\"queue\";N;s:5:\"delay\";N;s:6:\"\u0000*\u0000job\";N;}"}}
Run Code Online (Sandbox Code Playgroud)
我运行了一个在线文本dif,发现该blob的序列化数据部分在ArrayIterator部分中发生了一些差异(如指出的错误日志).看起来差异来自PushNotification :: DeviceCollection对象序列化的方式在我的本地机器和服务器之间是不同的.在我的测试中,我在本地和服务器上使用相同的POST数据命中api端点,以确保序列化的输出应该相同但不是.
我不确定如何解决这个问题.我不知道这在技术上是否是PushNotification包的错误(我没有看到任何与此问题相关的错误报告),或者它是否只是我正在掩饰的其他内容.
另外,在旁注中,我正在使用另一个队列来发送KeenIO事件,使用与此Push结构类似的类结构,并且它没有任何问题所以我真的觉得它必须是PushNotification包的一个问题. .有什么想法吗??
解决了
事实证明这是PHP版本的一个问题.我的服务器运行5.6,当我在PHP 7.0上制作另一个Droplet并克隆服务器时,一切都开始工作了.我启动并运行了原始服务器,因此它可以作为使用beanstalkd的推送通知的队列处理器,并且它像冠军一样工作.
编辑
我正在使用supervisor来运行queue:work命令.我跑了
php artisan queue:restart
Run Code Online (Sandbox Code Playgroud)
我通过命令行执行kill命令,确保在运行新测试时完全停止了工匠进程.同样,队列工作者在服务器上的KeenIO作业没有问题,只有PushNotification作业.
这是工作班:
<?php namespace App\Jobs\Push;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Bus\SelfHandling;
use Illuminate\Contracts\Queue\ShouldQueue;
use App\Jobs\SendPushEvent;
use …Run Code Online (Sandbox Code Playgroud) 在 forge 上遇到此错误,我不知道下一步该尝试什么。这是目前的情况以及我迄今为止所做的尝试。
Cloning into '{site_name}'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists
Run Code Online (Sandbox Code Playgroud)
这个伪造帐户适用于我工作的公司,该公司在 github 上有一个关联组织,我在该组织中拥有所有者角色。Forge 无法读取该组织拥有的任何存储库。在登录 forge 的 github 帐户的所有者被从组织中删除后,上述错误开始发生。
我尝试过的
Source Control。no restrictionskey already in use。我尝试联系 Forge 技术支持,但到目前为止他们的建议都没有奏效。
另请注意,我可以让 forge 连接到我的任何个人存储库,但不能连接到我在组织下创建的存储库。
还有其他人遇到过与 Forge 上的 github 组织相关的问题吗?