Previews not working do not under 10.3.1.2243?

I was about to publish a new version of my app, when I noticed that previews are no longer works since I upgraded my Z10 10.2.1 to 10.3.1.2243. At first, I thought that I must have inadvertently turned off instant previews in my phone settings, but they continue to work properly when an email, text, or BBM comes in. I also checked the App specific notification settings and everything looks good. The notification is save in the hub and scratch the alarm, but the preview is not displayed. It worked perfectly until I upgraded my OS device.

I'm doing something fancy in my application that allows me to build a single executable for OS 10.1 who can use the class of improved Notification of 10.2 if the application runs under 10.2 so I have to two generations. It worked fine under 10.2.1 but I was wondering if that ruse was causing my problem so I built a little app to Cascades coming fires a standard Notification 15 seconds after the start (which gives me enough time to switch to another application for the instant preview should be displayed). No matter if I have the build for Mac OS 10.2 or 10.3, in both cases the instant preview does not appear on my Z10. I can't test on a simulator since some sim versions are no notifications in the hub at all, and those that do will display previews not instant, even if the corresponding version of the ARM.

I wonder if anyone test this for me on a device running 10.3.1.2243. Simply create a "Hello World" application standard Cascades, add the bbplatform library, and then replace the following code for the support. Set the level of the API on 10.2 to use the Notification class that is expected to review instant.

I can't get my update until this is resolved. Thank you.

UPDATE: I forgot to mention that you must ask permission to notice too.

ApplicationUI.hpp

#ifndef ApplicationUI_HPP_
#define ApplicationUI_HPP_

#include 

namespace bb
{
    namespace cascades
    {
        class LocaleHandler;
    }
}

class QTranslator;

/*!
 * @brief Application UI object
 *
 * Use this object to create and init app UI, to create context objects, to register the new meta types etc.
 */
class ApplicationUI : public QObject
{
    Q_OBJECT
public:
    ApplicationUI();
    virtual ~ApplicationUI() {}
private slots:
    void onSystemLanguageChanged();
    void notify();
private:
    QTranslator* m_pTranslator;
    bb::cascades::LocaleHandler* m_pLocaleHandler;
};

#endif /* ApplicationUI_HPP_ */

ApplicationUI.cpp

#include "applicationui.hpp"

#include 
#include 
#include 
#include 
#include 
#include 
using namespace bb::cascades;

ApplicationUI::ApplicationUI() :
        QObject() {
    // prepare the localization
    m_pTranslator = new QTranslator( this );
    m_pLocaleHandler = new LocaleHandler( this );

    bool res = QObject::connect( m_pLocaleHandler, SIGNAL( systemLanguageChanged() ), this, SLOT( onSystemLanguageChanged() ) );
    // This is only available in Debug builds
    Q_ASSERT( res );
    // Since the variable is not used in the app, this is added to avoid a
    // compiler warning
    Q_UNUSED( res );

    // initial load
    onSystemLanguageChanged();

    // Create scene document from main.qml asset, the parent is set
    // to ensure the document gets destroyed properly at shut down.
    QmlDocument *qml = QmlDocument::create( "asset:///main.qml" ).parent( this );

    // Create root object for the UI
    AbstractPane *root = qml->createRootObject();

    // Set created root object as the application scene
    Application::instance()->setScene( root );

    QTimer::singleShot( 15000, this, SLOT( notify() ) );
}

void ApplicationUI::onSystemLanguageChanged() {
    QCoreApplication::instance()->removeTranslator( m_pTranslator );
    // Initiate, load and install the application translation files.
    QString locale_string = QLocale().name();
    QString file_name = QString( "InstantPreviewTest_%1" ).arg( locale_string );
    if ( m_pTranslator->load( file_name, "app/native/qm" ) ) {
        QCoreApplication::instance()->installTranslator( m_pTranslator );
    }
}

void ApplicationUI::notify() {
    bb::platform::Notification* notification = new bb::platform::Notification();
    notification->setTitle("Test Notification");
    notification->setBody("This is a test notification");

    notification->notify();
}

You must allow instant previews with the NotificationDefaultApplicationSettings class (take a long breath).
http://developer.BlackBerry.com/native/reference/Cascades/bb__platform__notificationdefaultapplicati...

Here is the code of a project without empty head, which includes the instant preview by default (sorry for the formatting, I'm on mobile):
Parameters of NotificationDefaultApplicationSettings;
settings.setPreview (NotificationPriorityPolicy::Allow);
Settings.Apply ();

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Images with novelties that appear as a draft

    I am using BT Yahoo - Mozilla Firefox Windows XP Professional with Service Pack 2. There is a section of news on the home page, but any newspaper article accompanied by still images (e.g., celebrations of the Chinese new year January 22) the images a

  • Satellite U205-S5002: how to get the copy of the Media express drive

    HelloI recently reformatted my laptop and I wanted to get a copy of the Express media player in the recovery disc creator, but he repeated to me that the file is there more.So I was wondering if theres another way to get a copy of the EMPThank you.

  • Qosmio X 500-148 - large file copy stucks

    Copying large files (about 5-10 GB) between USB or Firewire drive stucks the PC. It goes up to 50% then slows down and there is no possibility to do anything, including cancel them the task or open the browser or a Manager task or WIn Explorer.The ev

  • delete a saved game of Spider solitaire

    We had a power outage yesterday in the middle of a game of spider. I was able to close the game and restart your computer normally due to a battery backup unit. However, I said the game does NOT save tne current game which was in any case, and now I

  • Any Powershot camera allow exposures more than 15 seconds?

    I want to be able to shoot shows at least one minute or more, mainly to photograph pictures of night of lightning, stars, meteors, etc.. I would also like to have the convenience and accessibility of a point and shoot camera. To present all the Canon